From 6a8a90fe15142da68af29e97a207ef6221d684dd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 7 Jun 2009 12:31:24 +0000 Subject: [PATCH] suppress MSVC warning about cast truncating constant value git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/sockets/baseclient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/sockets/baseclient.cpp b/samples/sockets/baseclient.cpp index 22fe8f1ae9..f763eec800 100644 --- a/samples/sockets/baseclient.cpp +++ b/samples/sockets/baseclient.cpp @@ -325,7 +325,7 @@ Client::CreateBuffer(int* msgsize) //returned buffer will contain test indicator, message size in kb and data bufsize = size*1024+2; buf = new char[bufsize]; - buf[0] = (char)0xDE; //second byte contains size in kilobytes + buf[0] = (unsigned char)0xDE; //second byte contains size in kilobytes buf[1] = (char)(size); *msgsize = size*1024; } @@ -334,7 +334,7 @@ Client::CreateBuffer(int* msgsize) //returned buffer will contain test indicator, message size in kb and data bufsize = (*msgsize)+2; buf = new char[bufsize]; - buf[0] = (char)0xBE; //second byte contains size in bytes + buf[0] = (unsigned char)0xBE; //second byte contains size in bytes buf[1] = (char)(*msgsize); } return buf;