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/inventory.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/inventory.cpp')
-rw-r--r-- | engines/hugo/inventory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hugo/inventory.cpp b/engines/hugo/inventory.cpp index 64609e6327..b638322847 100644 --- a/engines/hugo/inventory.cpp +++ b/engines/hugo/inventory.cpp @@ -139,8 +139,8 @@ void InventoryHandler::constructInventory(const int16 imageTotNumb, int displayN * Process required action for inventory * Returns objId under cursor (or -1) for INV_GET */ -int16 InventoryHandler::processInventory(const InvAct action, ...) { - debugC(1, kDebugInventory, "processInventory(InvAct action, ...)"); +int16 InventoryHandler::processInventory(const int action, ...) { + debugC(1, kDebugInventory, "processInventory(int action, ...)"); int16 imageNumb; // Total number of inventory items int displayNumb; // Total number displayed/carried |