From ea40637b375dcc2286973c7b483070c62819ef4a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 14 Aug 2006 07:33:51 +0000 Subject: [PATCH] Fixed GCC 4.1 compilation --HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40277 --- sourcemm/CSmmAPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }