Skip to content

Commit

Permalink
tools: Fix signed literal used as a mask
Browse files Browse the repository at this point in the history
  • Loading branch information
wismill committed Jan 24, 2025
1 parent 4ac2226 commit a5bdb95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/interactive-evdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ print_state_fields_mask_t print_fields = DEFAULT_PRINT_FIELDS;
static bool
evdev_bit_is_set(const unsigned long *array, int bit)
{
return array[bit / LONG_BIT] & (1LL << (bit % LONG_BIT));
return array[bit / LONG_BIT] & (1ULL << (bit % LONG_BIT));
}

/* Some heuristics to see if the device is a keyboard. */
Expand Down

0 comments on commit a5bdb95

Please sign in to comment.