[Scummvm-git-logs] scummvm master -> 60ec07250aea755d2818e3a1e90ec46ca944fd12

sev- noreply at scummvm.org
Sun Dec 25 14:54:56 UTC 2022


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:
60ec07250a HPL1: Fix spammy warning in AngelScript


Commit: 60ec07250aea755d2818e3a1e90ec46ca944fd12
    https://github.com/scummvm/scummvm/commit/60ec07250aea755d2818e3a1e90ec46ca944fd12
Author: elasota (ejlasota at gmail.com)
Date: 2022-12-25T15:54:52+01:00

Commit Message:
HPL1: Fix spammy warning in AngelScript

Changed paths:
    engines/hpl1/engine/libraries/angelscript/angelscript.h


diff --git a/engines/hpl1/engine/libraries/angelscript/angelscript.h b/engines/hpl1/engine/libraries/angelscript/angelscript.h
index 9152033169e..78ced927715 100644
--- a/engines/hpl1/engine/libraries/angelscript/angelscript.h
+++ b/engines/hpl1/engine/libraries/angelscript/angelscript.h
@@ -162,7 +162,7 @@ enum asECallConvTypes {
 };
 
 // Object type flags
-enum asEObjTypeFlags {
+enum asEObjTypeFlags : unsigned int {
 	asOBJ_NULL                       = 0,
 	asOBJ_REF                        = (1 << 0),
 	asOBJ_VALUE                      = (1 << 1),
@@ -192,7 +192,7 @@ enum asEObjTypeFlags {
 	asOBJ_APP_CLASS_A                = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_ASSIGNMENT),
 	asOBJ_APP_CLASS_AK               = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_ASSIGNMENT + asOBJ_APP_CLASS_COPY_CONSTRUCTOR),
 	asOBJ_APP_CLASS_K                = (asOBJ_APP_CLASS + asOBJ_APP_CLASS_COPY_CONSTRUCTOR),
-	asOBJ_APP_CLASS_MORE_CONSTRUCTORS = (1 << 31),
+	asOBJ_APP_CLASS_MORE_CONSTRUCTORS = (1u << 31),
 	asOBJ_APP_PRIMITIVE              = (1 << 13),
 	asOBJ_APP_FLOAT                  = (1 << 14),
 	asOBJ_APP_ARRAY                  = (1 << 15),
@@ -201,7 +201,7 @@ enum asEObjTypeFlags {
 	asOBJ_NOCOUNT                    = (1 << 18),
 	asOBJ_APP_CLASS_ALIGN8           = (1 << 19),
 	asOBJ_IMPLICIT_HANDLE            = (1 << 20),
-	asOBJ_MASK_VALID_FLAGS           = 0x801FFFFF,
+	asOBJ_MASK_VALID_FLAGS           = 0x801FFFFFu,
 	// Internal flags
 	asOBJ_SCRIPT_OBJECT              = (1 << 21),
 	asOBJ_SHARED                     = (1 << 22),




More information about the Scummvm-git-logs mailing list