mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Fix implicit signed char-ness (#1581)
This commit is contained in:

committed by
GitHub

parent
2595537c4c
commit
0a50915312
@@ -288,7 +288,7 @@ void DecodeBrun(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_da
|
|||||||
while (--line >= 0) {
|
while (--line >= 0) {
|
||||||
short column = 0;
|
short column = 0;
|
||||||
data++;
|
data++;
|
||||||
char count = 0;
|
signed char count = 0;
|
||||||
while ((column += count) < width2) {
|
while ((column += count) < width2) {
|
||||||
count = *data++;
|
count = *data++;
|
||||||
|
|
||||||
@@ -331,7 +331,7 @@ void DecodeLC(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_data
|
|||||||
|
|
||||||
while (packets > 0) {
|
while (packets > 0) {
|
||||||
column += *data++; // skip byte
|
column += *data++; // skip byte
|
||||||
char type = *((char*) data++);
|
signed char type = *((signed char*) data++);
|
||||||
|
|
||||||
if (type < 0) {
|
if (type < 0) {
|
||||||
type = -type;
|
type = -type;
|
||||||
@@ -417,7 +417,7 @@ start_packet:
|
|||||||
// LINE: BETA10 0x1013e726
|
// LINE: BETA10 0x1013e726
|
||||||
column += *data.byte++;
|
column += *data.byte++;
|
||||||
// LINE: BETA10 0x1013e73a
|
// LINE: BETA10 0x1013e73a
|
||||||
short type = *(char*) data.byte++;
|
short type = *(signed char*) data.byte++;
|
||||||
type += type;
|
type += type;
|
||||||
|
|
||||||
if (type >= 0) {
|
if (type >= 0) {
|
||||||
|
Reference in New Issue
Block a user