From 4a65972ac4939f63c0ea05ef4465a59e5aa8a553 Mon Sep 17 00:00:00 2001 From: Siarzhuk Zharski Date: Sun, 14 Apr 2013 22:48:33 +0200 Subject: [PATCH] Fix GCC2 build. Thanks to John for the warning. --- src/apps/stylededit/StyledEditWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/stylededit/StyledEditWindow.cpp b/src/apps/stylededit/StyledEditWindow.cpp index 68986e8ac8..4469d1d2f8 100644 --- a/src/apps/stylededit/StyledEditWindow.cpp +++ b/src/apps/stylededit/StyledEditWindow.cpp @@ -1512,7 +1512,7 @@ StyledEditWindow::_ReloadDocument(BMessage* message) } else { if (charset != NULL) { // UTF8 id assumed equal to -1 - const uint32 idUTF8 = -1; + const uint32 idUTF8 = (uint32)-1; uint32 id = charset->GetConversionID(); if (strcmp(forceEncoding, "next") == 0) id = id == B_MS_WINDOWS_1250_CONVERSION ? idUTF8 : id + 1;