diff --git a/ddio/lnxmouse.cpp b/ddio/lnxmouse.cpp index 558d2519..f2fc6806 100644 --- a/ddio/lnxmouse.cpp +++ b/ddio/lnxmouse.cpp @@ -537,7 +537,7 @@ const char *ddio_MouseGetBtnText(int btn) { } const char *ddio_MouseGetAxisText(int axis) { - if (axis >= (sizeof(Ctltext_MseAxisBindings) / sizeof(char *)) || axis < 0) + if (axis >= static_cast(sizeof(Ctltext_MseAxisBindings) / sizeof(Ctltext_MseAxisBindings[0])) || axis < 0) return (""); return Ctltext_MseAxisBindings[axis]; }