aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/display.cpp
diff options
context:
space:
mode:
authorThierry Crozat2017-10-06 00:55:11 +0100
committerThierry Crozat2017-10-06 01:01:11 +0100
commit99abd640c82d47b6b0fd11267eec18fa528f0a0b (patch)
tree5d23cedf46f5f03ec79bec7f8448ab4bff7d15fa /engines/hugo/display.cpp
parent6f8f27ecb28fca750e0ceaa09779d78164eaaaac (diff)
downloadscummvm-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.cpp2
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