Browse Source

Merge pull request #86 from Qfusion/limits_fix

Avoid C-style _MAX limit macros.
Michael R. P. Ragazzon 5 years ago
parent
commit
b4ef33b792
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Include/RmlUi/Core/ID.h

+ 2 - 2
Include/RmlUi/Core/ID.h

@@ -64,7 +64,7 @@ enum class ShorthandId : uint8_t
 	FirstCustomId = NumDefinedIds,
 	FirstCustomId = NumDefinedIds,
 
 
 	// The maximum number of IDs. This limits the number of possible custom IDs to MaxNumIds - FirstCustomId.
 	// The maximum number of IDs. This limits the number of possible custom IDs to MaxNumIds - FirstCustomId.
-	MaxNumIds = UINT8_MAX
+	MaxNumIds = 0xff
 };
 };
 
 
 
 
@@ -209,7 +209,7 @@ enum class EventId : uint16_t
 	FirstCustomId = NumDefinedIds,
 	FirstCustomId = NumDefinedIds,
 
 
 	// The maximum number of IDs. This limits the number of possible custom IDs to MaxNumIds - FirstCustomId.
 	// The maximum number of IDs. This limits the number of possible custom IDs to MaxNumIds - FirstCustomId.
-	MaxNumIds = UINT16_MAX
+	MaxNumIds = 0xffff
 };
 };
 
 
 }
 }