diff --git a/sourcehook/sh_string.h b/sourcehook/sh_string.h index 9c8dc22..2c860eb 100755 --- a/sourcehook/sh_string.h +++ b/sourcehook/sh_string.h @@ -126,13 +126,13 @@ public: int find(const char c, int index = 0) { - size_t len = size(); + int len = static_cast(size()); if (len < 1) return npos; - if (index >= (int)len || index < 0) + if (index >= len || index < 0) return npos; - unsigned int i = 0; - for (i=index; i<(int)len; i++) + int i = 0; + for (i=index; i