combine numeric stacks into one common stack.

This commit is contained in:
Jeff Hutchinson 2021-04-16 19:20:15 -04:00
parent a2dea07d8b
commit bc0f5bd3a3
2 changed files with 119 additions and 128 deletions

View file

@ -114,15 +114,15 @@ struct StringStack
}
/// Get an integer representation of the top of the stack.
inline U32 getIntValue()
inline S64 getIntValue()
{
return dAtoi(mBuffer + mStart);
return dAtol(mBuffer + mStart);
}
/// Get a float representation of the top of the stack.
inline F64 getFloatValue()
{
return dAtof(mBuffer + mStart);
return dAtod(mBuffer + mStart);
}
/// Get a string representation of the top of the stack.