From d924939be81c8a836516cded30f1392cd9b6baf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82odzimierz=20Skiba?= Date: Mon, 19 Jun 2006 09:03:40 +0000 Subject: [PATCH] Warning fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/htlbox/htlbox.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/htlbox/htlbox.cpp b/samples/htlbox/htlbox.cpp index a5a87d3431..a1f9757624 100644 --- a/samples/htlbox/htlbox.cpp +++ b/samples/htlbox/htlbox.cpp @@ -476,9 +476,9 @@ wxString MyHtmlListBox::OnGetItem(size_t n) const #else int level = n % 6 + 1; - wxColour clr(abs((int)n - 192) % 256, - abs((int)n - 256) % 256, - abs((int)n - 128) % 256); + wxColour clr((unsigned char)(abs((int)n - 192) % 256), + (unsigned char)(abs((int)n - 256) % 256), + (unsigned char)(abs((int)n - 128) % 256)); wxString label = wxString::Format(_T("") _T("Item %lu")