Fix build fail under GCC 10

GCC fails to build because of -Wnarrowing
This commit is contained in:
Antoine Viallon 2020-06-20 19:19:49 +02:00 committed by GitHub
parent cbad6f95ea
commit f13f25db3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -736,7 +736,7 @@ static int16 VideoStatus(uint32 pb, VidLocals *csSave)
case cscGetNextResolution: {
D(bug("GetNextResolution \n"));
int work_id = ReadMacInt32(param + csPreviousDisplayModeID);
unsigned int work_id = ReadMacInt32(param + csPreviousDisplayModeID);
switch (work_id) {
case kDisplayModeIDCurrent:
work_id = csSave->saveData;