From 6e45e05d3d8c285bc34b0e4fb19a04cc3d0c8fef Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 25 May 2006 05:20:50 +0000 Subject: [PATCH] oh, hello bug --HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40207 --- sourcemm/CSmmAPI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sourcemm/CSmmAPI.cpp b/sourcemm/CSmmAPI.cpp index cace0be..42b21ca 100644 --- a/sourcemm/CSmmAPI.cpp +++ b/sourcemm/CSmmAPI.cpp @@ -301,7 +301,7 @@ void CSmmAPI::GetShVersions(int &shvers, int &shimpl) int CSmmAPI::FormatIface(char iface[], unsigned int maxlength) { - unsigned int length = (unsigned int)strlen(iface); + int length = (int)strlen(iface); int i; int num = 0; @@ -311,7 +311,7 @@ int CSmmAPI::FormatIface(char iface[], unsigned int maxlength) break; } - if ( (num && (maxlength <= length)) || (!num && (maxlength <= length+3)) ) + if ( (num && ((int)maxlength <= length)) || (!num && ((int)maxlength <= length+3)) ) { return -1; }