CRYO: Fix Comparison Always True Compiler Warnings.
These occurred while compiling in Raspberry Pi Raspbian latest and appear to be due to char being interpreted as unsigned by default, rather than signed in two data structures. Have replaced with explicit types to avoid this issue.
This commit is contained in:
parent
0b7ec3af00
commit
dcfc00dba4
1 changed files with 6 additions and 6 deletions
|
@ -367,10 +367,10 @@ enum DialogType {
|
|||
}
|
||||
|
||||
struct Dialog {
|
||||
char _flags; // 0-3 - action index, 4 - highest bit of contidion index, rest is DialogFlags
|
||||
char _condNumLow; // condition index low bits
|
||||
char _textCondHiMask; // 0-1 text index hi bits, 2-5 - perso mask num, 6-7 condition index hi bits
|
||||
char _textNumLow; // text line index low bits
|
||||
int8 _flags; // 0-3 - action index, 4 - highest bit of contidion index, rest is DialogFlags
|
||||
int8 _condNumLow; // condition index low bits
|
||||
int8 _textCondHiMask; // 0-1 text index hi bits, 2-5 - perso mask num, 6-7 condition index hi bits
|
||||
int8 _textNumLow; // text line index low bits
|
||||
};
|
||||
|
||||
struct tape_t {
|
||||
|
@ -383,8 +383,8 @@ struct tape_t {
|
|||
};
|
||||
|
||||
struct Follower { // Characters on Mirror screen
|
||||
char _id; // character
|
||||
char _spriteNum; // sprite number
|
||||
int8 _id; // character
|
||||
int8 _spriteNum; // sprite number
|
||||
int16 sx;
|
||||
int16 sy;
|
||||
int16 ex;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue