Преглед на файлове

testevdev: Allow device properties to be fully populated

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 <[email protected]>
Simon McVittie преди 2 години
родител
ревизия
a4ce721d7a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      test/testevdev.c

+ 1 - 1
test/testevdev.c

@@ -73,7 +73,7 @@ typedef struct
     uint8_t abs[(ABS_MAX + 1) / 8];
     uint8_t abs[(ABS_MAX + 1) / 8];
     uint8_t rel[(REL_MAX + 1) / 8];
     uint8_t rel[(REL_MAX + 1) / 8];
     uint8_t ff[(FF_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;
     int expected;
     const char *todo;
     const char *todo;
     size_t hid_report_descriptor_length;
     size_t hid_report_descriptor_length;