mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-10 20:07:05 -06:00
4.20
This commit is contained in:
committed by
Kornel Lesiński
parent
8c1b5c7b7e
commit
3c510ba80b
@@ -4,9 +4,9 @@
|
||||
|
||||
#include "StringToInt.h"
|
||||
|
||||
UINT64 ConvertStringToUINT64(const char *s, const char **end)
|
||||
UInt64 ConvertStringToUInt64(const char *s, const char **end)
|
||||
{
|
||||
UINT64 result = 0;
|
||||
UInt64 result = 0;
|
||||
while(true)
|
||||
{
|
||||
char c = *s;
|
||||
@@ -22,9 +22,9 @@ UINT64 ConvertStringToUINT64(const char *s, const char **end)
|
||||
}
|
||||
}
|
||||
|
||||
UINT64 ConvertStringToUINT64(const wchar_t *s, const wchar_t **end)
|
||||
UInt64 ConvertStringToUInt64(const wchar_t *s, const wchar_t **end)
|
||||
{
|
||||
UINT64 result = 0;
|
||||
UInt64 result = 0;
|
||||
while(true)
|
||||
{
|
||||
wchar_t c = *s;
|
||||
@@ -41,10 +41,9 @@ UINT64 ConvertStringToUINT64(const wchar_t *s, const wchar_t **end)
|
||||
}
|
||||
|
||||
|
||||
INT64 ConvertStringToINT64(const char *s, const char **end)
|
||||
Int64 ConvertStringToInt64(const char *s, const char **end)
|
||||
{
|
||||
INT64 result = 0;
|
||||
if (*s == '-')
|
||||
return -(INT64)ConvertStringToUINT64(s + 1, end);
|
||||
return ConvertStringToUINT64(s, end);
|
||||
return -(Int64)ConvertStringToUInt64(s + 1, end);
|
||||
return ConvertStringToUInt64(s, end);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user