d/pssense: Replace uint with uint32_t in pssense_driver.c

The type "uint" doesn't seem to exist on some platforms at least
(for example alpine linux), and it's only used in a single file,
so it seems like a good idea to change the two uses to "uint32_t".

Closes #258
This commit is contained in:
Mis012 2023-05-19 16:08:14 +01:00 committed by Jakob Bornecrantz
parent 5e0f0866a6
commit 19f87ba217

View file

@ -413,7 +413,7 @@ pssense_device_update_inputs(struct xrt_device *xdev)
// Lock the data.
os_mutex_lock(&pssense->lock);
for (uint i = 0; i < (uint)sizeof(enum pssense_input_index); i++) {
for (uint32_t i = 0; i < (uint32_t)sizeof(enum pssense_input_index); i++) {
pssense->base.inputs[i].timestamp = (int64_t)pssense->state.timestamp_ns;
}
pssense->base.inputs[PSSENSE_INDEX_PS_CLICK].value.boolean = pssense->state.ps_click;