Fix GCC2 build. Thanks to John for the warning.

This commit is contained in:
Siarzhuk Zharski 2013-04-14 22:48:33 +02:00
parent a6ea4a194f
commit 4a65972ac4
1 changed files with 1 additions and 1 deletions

View File

@ -1512,7 +1512,7 @@ StyledEditWindow::_ReloadDocument(BMessage* message)
} else { } else {
if (charset != NULL) { if (charset != NULL) {
// UTF8 id assumed equal to -1 // UTF8 id assumed equal to -1
const uint32 idUTF8 = -1; const uint32 idUTF8 = (uint32)-1;
uint32 id = charset->GetConversionID(); uint32 id = charset->GetConversionID();
if (strcmp(forceEncoding, "next") == 0) if (strcmp(forceEncoding, "next") == 0)
id = id == B_MS_WINDOWS_1250_CONVERSION ? idUTF8 : id + 1; id = id == B_MS_WINDOWS_1250_CONVERSION ? idUTF8 : id + 1;