diff options
author | Thierry Crozat | 2017-10-06 00:55:11 +0100 |
---|---|---|
committer | Thierry Crozat | 2017-10-06 01:01:11 +0100 |
commit | 99abd640c82d47b6b0fd11267eec18fa528f0a0b (patch) | |
tree | 5d23cedf46f5f03ec79bec7f8448ab4bff7d15fa /engines/hugo/display.cpp | |
parent | 6f8f27ecb28fca750e0ceaa09779d78164eaaaac (diff) | |
download | scummvm-rg350-99abd640c82d47b6b0fd11267eec18fa528f0a0b.tar.gz scummvm-rg350-99abd640c82d47b6b0fd11267eec18fa528f0a0b.tar.bz2 scummvm-rg350-99abd640c82d47b6b0fd11267eec18fa528f0a0b.zip |
HUGO: Fix undefined behaviour in variadic functions
Passing a type that undergoes default argument promotion as last
argument of a variadic function results in undefined behaviour.
Diffstat (limited to 'engines/hugo/display.cpp')
-rw-r--r-- | engines/hugo/display.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hugo/display.cpp b/engines/hugo/display.cpp index 17627608bd..77df20eda5 100644 --- a/engines/hugo/display.cpp +++ b/engines/hugo/display.cpp @@ -332,7 +332,7 @@ int16 Screen::mergeLists(Rect *list, Rect *blist, const int16 len, int16 blen) { * Process the display list * Trailing args are int16 x,y,dx,dy for the D_ADD operation */ -void Screen::displayList(Dupdate update, ...) { +void Screen::displayList(int update, ...) { debugC(6, kDebugDisplay, "displayList()"); int16 blitLength = 0; // Length of blit list |