Functions VmaUint32ToStr, VmaUint64ToStr: Changed usage of _ultoa_s, _ui64toa_s to snprintf to rely on portable standard library only. (Issue #4 - thanks @Evangel63)

This commit is contained in:
Adam Sawicki 2017-08-07 11:43:49 +02:00
parent 73fb4aa325
commit ea6da94c24
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -836,11 +836,11 @@ remove them if not needed.
#if VMA_STATS_STRING_ENABLED
static inline void VmaUint32ToStr(char* outStr, size_t strLen, uint32_t num)
{
_ultoa_s(num, outStr, strLen, 10);
snprintf(outStr, strLen, "%u", num);
}
static inline void VmaUint64ToStr(char* outStr, size_t strLen, uint64_t num)
{
_ui64toa_s(num, outStr, strLen, 10);
snprintf(outStr, strLen, "%llu", num);
}
#endif