mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Added type conversions to fix compile errors
Added two type conversions that were missing in order to fix some compile errors.
This commit is contained in:
parent
02f859c150
commit
2e7018bf68
1 changed files with 9 additions and 0 deletions
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue