Skip to content

Commit

Permalink
testevdev: Allow device properties to be fully populated
Browse files Browse the repository at this point in the history
The props array was too small for the highest property bits to be set,
although in practice this didn't matter since only the lower-order bits
have a meaning. Make it consistent with all the others.

Signed-off-by: Simon McVittie <smcv@collabora.com>
  • Loading branch information
smcv authored and slouken committed Jun 16, 2023
1 parent fa0ca3d commit a4ce721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testevdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ typedef struct
uint8_t abs[(ABS_MAX + 1) / 8];
uint8_t rel[(REL_MAX + 1) / 8];
uint8_t ff[(FF_MAX + 1) / 8];
uint8_t props[INPUT_PROP_MAX / 8];
uint8_t props[(INPUT_PROP_MAX + 1) / 8];
int expected;
const char *todo;
size_t hid_report_descriptor_length;
Expand Down

0 comments on commit a4ce721

Please sign in to comment.