[Scummvm-git-logs] scummvm master -> a6c44c94ae045ef958a93951c7d0e473ff907a1c

lephilousophe noreply at scummvm.org
Sun Nov 17 08:36:48 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
a6c44c94ae AGS: Fix build when int32_t is long int


Commit: a6c44c94ae045ef958a93951c7d0e473ff907a1c
    https://github.com/scummvm/scummvm/commit/a6c44c94ae045ef958a93951c7d0e473ff907a1c
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2024-11-17T09:36:15+01:00

Commit Message:
AGS: Fix build when int32_t is long int

When in32_t is long int, the compiler doesn't know what to choose for
int: the long int overload or the pointer ones.

Changed paths:
    engines/ags/shared/core/types.h


diff --git a/engines/ags/shared/core/types.h b/engines/ags/shared/core/types.h
index e4dbb02566e..8b5980ed00e 100644
--- a/engines/ags/shared/core/types.h
+++ b/engines/ags/shared/core/types.h
@@ -115,8 +115,7 @@ class NumberPtr {
 public:
 	NumberPtr() : _value(0) {
 	}
-	NumberPtr(int32_t value) {
-		_value = value;
+	NumberPtr(int value) : _value(value) {
 	}
 	NumberPtr(void *ptr) : _value((intptr_t)ptr) {
 	}




More information about the Scummvm-git-logs mailing list