From: Stefan Csomor Date: Wed, 19 Apr 2006 14:42:55 +0000 (+0000) Subject: fixing sign conversion warning X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6d49e4bbed54b296e9d59d1051de9182f4058bff fixing sign conversion warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 3cbaafa3c4..46f90f8732 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -507,7 +507,7 @@ pascal OSStatus wxMacUnicodeTextEventHandler( EventHandlerCallRef handler , Even numChars = dataSize / sizeof( UniChar) + 1; charBuf = buf ; - if ( numChars * 2 > sizeof(buf) ) + if ( (size_t) numChars * 2 > sizeof(buf) ) charBuf = new UniChar[ numChars ] ; else charBuf = buf ;