From 21c610496c653c927a363c64584ffcf780214a35 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Sat, 24 Sep 2005 15:27:03 +0000 Subject: [PATCH] Hello. --HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40113 --- sourcehook/sh_string.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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