diff --git a/sched/validate_util2.cpp b/sched/validate_util2.cpp index 7d7cc670d8..5b012692ee 100644 --- a/sched/validate_util2.cpp +++ b/sched/validate_util2.cpp @@ -61,7 +61,7 @@ using std::vector; // int check_set( vector& results, WORKUNIT& wu, - int& canonicalid, double&, bool& retry + DB_ID_TYPE& canonicalid, double&, bool& retry ) { vector data; vector had_error; diff --git a/sched/validate_util2.h b/sched/validate_util2.h index f53c6b8f29..9c6fa95883 100644 --- a/sched/validate_util2.h +++ b/sched/validate_util2.h @@ -28,7 +28,7 @@ extern int cleanup_result(RESULT const&, void*); extern double compute_granted_credit(WORKUNIT&, std::vector& results); extern int check_set( std::vector& results, WORKUNIT& wu, - int& canonicalid, double& credit_deprecated, bool& retry + DB_ID_TYPE& canonicalid, double& credit_deprecated, bool& retry ); extern void check_pair(RESULT& r1, RESULT& r2, bool& retry); #endif diff --git a/sched/validator.cpp b/sched/validator.cpp index 0749f92508..effdb16f08 100644 --- a/sched/validator.cpp +++ b/sched/validator.cpp @@ -185,7 +185,8 @@ int handle_wu( int canonical_result_index = -1; bool update_result, retry; TRANSITION_TIME transition_time = NO_CHANGE; - int retval = 0, canonicalid = 0, x; + int retval = 0, x; + DB_ID_TYPE canonicalid = 0; double credit = 0; unsigned int i; @@ -602,7 +603,7 @@ int handle_wu( // transition_time = NEVER; log_messages.printf(MSG_DEBUG, - "[WU#%lu %s] Found a canonical result: id=%d\n", + "[WU#%lu %s] Found a canonical result: id=%lu\n", wu.id, wu.name, canonicalid ); wu.canonical_resultid = canonicalid;