1
0
Fork 0

GUI: changed StringUtil

This commit is contained in:
mrexodia 2016-07-25 23:47:20 +02:00
parent d7c0280994
commit 9bb9716908
No known key found for this signature in database
GPG Key ID: D72F9A4FAA0073B4
1 changed files with 1 additions and 5 deletions

View File

@ -36,27 +36,23 @@ static QString ToLongLongHexString(unsigned long long Value)
static QString ToHexString(duint Value)
{
char temp[33];
char temp[32];
#ifdef _WIN64
sprintf_s(temp, "%llX", Value);
#else
sprintf_s(temp, "%X", Value);
#endif // _WIN64
return QString(temp);
}
static QString ToDecString(dsint Value)
{
char temp[32];
#ifdef _WIN64
sprintf_s(temp, "%lld", Value);
#else
sprintf_s(temp, "%d", Value);
#endif // _WIN64
return QString(temp);
}