mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
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:
parent
5e0f0866a6
commit
19f87ba217
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue