From 0a87d01ca09a024cc3b53e90c2c5c7bc544c4a5b Mon Sep 17 00:00:00 2001 From: Tyler Dauwalder Date: Sun, 29 Sep 2002 07:15:31 +0000 Subject: [PATCH] Fixed a couple of warnings git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1275 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/storage/sniffer/Pattern.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/storage/sniffer/Pattern.cpp b/src/kits/storage/sniffer/Pattern.cpp index f570152f6c..d0a475808e 100644 --- a/src/kits/storage/sniffer/Pattern.cpp +++ b/src/kits/storage/sniffer/Pattern.cpp @@ -29,7 +29,7 @@ Pattern::Pattern(const std::string &string) // Build a mask with all bits turned on of the // appropriate length std::string mask = ""; - for (int i = 0; i < string.length(); i++) + for (uint i = 0; i < string.length(); i++) mask += (char)0xFF; SetTo(string, mask); } @@ -54,7 +54,7 @@ Pattern::GetErr() const { void dumpStr(const std::string &string, const char *label = NULL) { if (label) printf("%s: ", label); - for (int i = 0; i < string.length(); i++) + for (uint i = 0; i < string.length(); i++) printf("%x ", string[i]); printf("\n"); }