From 19f87ba217df52d9a24d0ec05df3777d5ef76d71 Mon Sep 17 00:00:00 2001 From: Mis012 Date: Fri, 19 May 2023 16:08:14 +0100 Subject: [PATCH] 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 --- src/xrt/drivers/pssense/pssense_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrt/drivers/pssense/pssense_driver.c b/src/xrt/drivers/pssense/pssense_driver.c index 4ce579677..ae0ee88e9 100644 --- a/src/xrt/drivers/pssense/pssense_driver.c +++ b/src/xrt/drivers/pssense/pssense_driver.c @@ -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;