diff include/core/ini.h @ 122:bc218c9d2ea6

strings: convert ToInt() to be a template ini: conform to new strings.cc changes
author Paper <mrpapersonic@gmail.com>
date Wed, 08 Nov 2023 21:36:09 -0500
parents 275da698697d
children 7d3ad9529c4c
line wrap: on
line diff
--- a/include/core/ini.h	Wed Nov 08 18:13:56 2023 -0500
+++ b/include/core/ini.h	Wed Nov 08 21:36:09 2023 -0500
@@ -43,12 +43,9 @@
 		if constexpr (std::is_same<T, bool>::value) {
 			/* Boolean? */
 			return Strings::ToBool(val);
-		} else if constexpr (std::is_unsigned<T>::value) {
-			/* Unsigned? */
-			return Strings::ToUnsignedInt(val);
 		} else {
 			/* Always fall back to long long */
-			return Strings::ToInt(val);
+			return Strings::ToInt<T>(val);
 		}
 	} else {
 		return val;