瀏覽代碼

Added type conversions to fix compile errors

Added two type conversions that were missing in order to fix some
compile errors.
Nathan Bowhay 10 年之前
父節點
當前提交
2e7018bf68
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      Engine/source/core/strings/stringFunctions.h

+ 9 - 0
Engine/source/core/strings/stringFunctions.h

@@ -150,11 +150,20 @@ inline U32 dAtoui(const char *str, U32 base = 10)
    return strtoul(str, NULL, base);
    return strtoul(str, NULL, base);
 }
 }
 
 
+inline U16 dAtous(const char *str, U32 base = 10)
+{
+   return strtoul(str, NULL, base);
+}
+
 inline F32 dAtof(const char *str)
 inline F32 dAtof(const char *str)
 {
 {
    return strtof(str, NULL);
    return strtof(str, NULL);
 }
 }
 
 
+inline F64 dAtod(const char *str)
+{
+   return strtod(str, NULL);
+}
 
 
 inline char dToupper(const char c)
 inline char dToupper(const char c)
 {
 {