Skip to content

Commit e2fb7aa

Browse files
committed
Fix narrowing errors
1 parent 9e1975b commit e2fb7aa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/iscreen/iextern.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2347,7 +2347,7 @@ void iPreparePlayerResults(int id)
23472347
}
23482348

23492349
const char* STR_NONE1 = "NONE";
2350-
const char STR_NONE2[] = {0x8D, 0x85, 0x92}; //cp866 - НЕТ
2350+
const char STR_NONE2[] = {(char)0x8D, (char)0x85, (char)0x92}; //cp866 - НЕТ
23512351

23522352
const char* STR_JOYSTICK_KEY_NAME[] = {
23532353
"jbutton_1",

src/terra/vmap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ void vrtMap::dump_terrain() {
11041104

11051105
SDL_Palette *gray_pal = SDL_AllocPalette(256);
11061106
for (i2 = 0; i2 < 256; i2++) {
1107-
SDL_Color color = {i2, i2, i2, 255};
1107+
SDL_Color color = {(Uint8)i2, (Uint8)i2, (Uint8)i2, 255};
11081108
SDL_SetPaletteColors(gray_pal, &color, i2, 1);
11091109
}
11101110

0 commit comments

Comments
 (0)