Skip to content

Commit

Permalink
Fix sign mismatch in assignments
Browse files Browse the repository at this point in the history
Instead of initializing an unsigned value to -1 just
use numeric_limits::max().

Signed-off-by: Joseph Schuchart <[email protected]>
  • Loading branch information
devreal committed Nov 13, 2024
1 parent 3435452 commit a9bb37a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ttg/ttg/parsec/ttg.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ namespace ttg_parsec {
MSG_SET_ARGSTREAM_SIZE = 1,
MSG_FINALIZE_ARGSTREAM_SIZE = 2,
MSG_GET_FROM_PULL = 3 } fn_id_t;
uint32_t taskpool_id = -1;
uint64_t op_id = -1;
uint32_t taskpool_id = std::numeric_limits<uint32_t>::max();
uint64_t op_id = std::numeric_limits<uint64_t>::max();
std::size_t key_offset = 0;
fn_id_t fn_id = MSG_INVALID;
std::int8_t num_iovecs = 0;
Expand Down Expand Up @@ -334,7 +334,7 @@ namespace ttg_parsec {
void create_tpool() {
assert(nullptr == tpool);
tpool = PARSEC_OBJ_NEW(parsec_taskpool_t);
tpool->taskpool_id = -1;
tpool->taskpool_id = std::numeric_limits<uint32_t>::max();
tpool->update_nb_runtime_task = parsec_add_fetch_runtime_task;
tpool->taskpool_type = PARSEC_TASKPOOL_TYPE_TTG;
tpool->taskpool_name = strdup("TTG Taskpool");
Expand Down

0 comments on commit a9bb37a

Please sign in to comment.