From cb916e4d240a23d5583129ac6b3d4de878be8bff Mon Sep 17 00:00:00 2001 From: June Tate-Gans Date: Sun, 25 Apr 2021 14:35:49 -0500 Subject: [PATCH] g13d: Fix a comparison with signed vs. unsigned --- g13d/g13.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/g13d/g13.cc b/g13d/g13.cc index 0bdb429..f871681 100644 --- a/g13d/g13.cc +++ b/g13d/g13.cc @@ -351,8 +351,9 @@ G13_Device::G13_Device(G13_Manager &manager, libusb_device_handle *handle, _current_profile = ProfilePtr(new G13_Profile(*this, "default")); _profiles["default"] = _current_profile; - for (int i = 0; i < sizeof(keys); i++) + for (unsigned int i = 0; i < sizeof(keys); i++) { keys[i] = false; + } lcd().image_clear();