Просмотр исходного кода

Updated code and project to C++20 standard

Paul A 4 лет назад
Родитель
Сommit
623197273f
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      Praxis3D/Source/Config.h
  2. 1 1
      Praxis3D/Source/Utilities.h

+ 1 - 1
Praxis3D/Source/Config.h

@@ -510,7 +510,7 @@ namespace Properties
 	static Properties::PropertyID toPropertyID(const float p_value)
 	{
 		// If the passed value is within enum range, static cast it to ID, if not, return null ID
-		if(p_value > Properties::PropertyID::Null && p_value < Properties::PropertyID::NumberOfPropertyIDs)
+		if((int)p_value > Properties::PropertyID::Null && (int)p_value < Properties::PropertyID::NumberOfPropertyIDs)
 			return static_cast<Properties::PropertyID>((int)p_value);
 		else
 			return Properties::PropertyID::Null;

+ 1 - 1
Praxis3D/Source/Utilities.h

@@ -241,7 +241,7 @@ namespace Utilities
 	static Scancode toScancode(const float p_value)
 	{
 		// If the passed value is within enum range, static cast it to a scancode, if not, return invalid scancode
-		if(p_value > Scancode::Key_Invalid && p_value < Scancode::NumberOfScancodes)
+		if((int)p_value > Scancode::Key_Invalid && (int)p_value < Scancode::NumberOfScancodes)
 			return static_cast<Scancode>((int)p_value);
 		else
 			return Scancode::Key_Invalid;