diff --git a/sourcemm/CSmmAPI.cpp b/sourcemm/CSmmAPI.cpp index 8658bd3..3848476 100644 --- a/sourcemm/CSmmAPI.cpp +++ b/sourcemm/CSmmAPI.cpp @@ -362,7 +362,7 @@ void *CSmmAPI::VInterfaceMatch(CreateInterfaceFn fn, const char *iface, bool cho char buffer[256]; /* assume no interface will go beyond this */ int len = static_cast(strlen(iface)); - if (len > sizeof(buffer) - 4) + if (len > static_cast(sizeof(buffer) - 4)) { return NULL; }