Commit cb7546ea authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

msvcrt: Use BOOL type where appropriate.

parent 5520dcab
...@@ -987,7 +987,7 @@ int CDECL _ltoa_s(MSVCRT_long value, char *str, MSVCRT_size_t size, int radix) ...@@ -987,7 +987,7 @@ int CDECL _ltoa_s(MSVCRT_long value, char *str, MSVCRT_size_t size, int radix)
{ {
MSVCRT_ulong val; MSVCRT_ulong val;
unsigned int digit; unsigned int digit;
int is_negative; BOOL is_negative;
char buffer[33], *pos; char buffer[33], *pos;
size_t len; size_t len;
...@@ -1001,12 +1001,12 @@ int CDECL _ltoa_s(MSVCRT_long value, char *str, MSVCRT_size_t size, int radix) ...@@ -1001,12 +1001,12 @@ int CDECL _ltoa_s(MSVCRT_long value, char *str, MSVCRT_size_t size, int radix)
if (value < 0 && radix == 10) if (value < 0 && radix == 10)
{ {
is_negative = 1; is_negative = TRUE;
val = -value; val = -value;
} }
else else
{ {
is_negative = 0; is_negative = FALSE;
val = value; val = value;
} }
...@@ -1062,7 +1062,7 @@ int CDECL _ltow_s(MSVCRT_long value, MSVCRT_wchar_t *str, MSVCRT_size_t size, in ...@@ -1062,7 +1062,7 @@ int CDECL _ltow_s(MSVCRT_long value, MSVCRT_wchar_t *str, MSVCRT_size_t size, in
{ {
MSVCRT_ulong val; MSVCRT_ulong val;
unsigned int digit; unsigned int digit;
int is_negative; BOOL is_negative;
MSVCRT_wchar_t buffer[33], *pos; MSVCRT_wchar_t buffer[33], *pos;
size_t len; size_t len;
...@@ -1076,12 +1076,12 @@ int CDECL _ltow_s(MSVCRT_long value, MSVCRT_wchar_t *str, MSVCRT_size_t size, in ...@@ -1076,12 +1076,12 @@ int CDECL _ltow_s(MSVCRT_long value, MSVCRT_wchar_t *str, MSVCRT_size_t size, in
if (value < 0 && radix == 10) if (value < 0 && radix == 10)
{ {
is_negative = 1; is_negative = TRUE;
val = -value; val = -value;
} }
else else
{ {
is_negative = 0; is_negative = FALSE;
val = value; val = value;
} }
...@@ -1338,7 +1338,7 @@ int CDECL _i64toa_s(__int64 value, char *str, MSVCRT_size_t size, int radix) ...@@ -1338,7 +1338,7 @@ int CDECL _i64toa_s(__int64 value, char *str, MSVCRT_size_t size, int radix)
{ {
unsigned __int64 val; unsigned __int64 val;
unsigned int digit; unsigned int digit;
int is_negative; BOOL is_negative;
char buffer[65], *pos; char buffer[65], *pos;
size_t len; size_t len;
...@@ -1352,12 +1352,12 @@ int CDECL _i64toa_s(__int64 value, char *str, MSVCRT_size_t size, int radix) ...@@ -1352,12 +1352,12 @@ int CDECL _i64toa_s(__int64 value, char *str, MSVCRT_size_t size, int radix)
if (value < 0 && radix == 10) if (value < 0 && radix == 10)
{ {
is_negative = 1; is_negative = TRUE;
val = -value; val = -value;
} }
else else
{ {
is_negative = 0; is_negative = FALSE;
val = value; val = value;
} }
...@@ -1413,7 +1413,7 @@ int CDECL _i64tow_s(__int64 value, MSVCRT_wchar_t *str, MSVCRT_size_t size, int ...@@ -1413,7 +1413,7 @@ int CDECL _i64tow_s(__int64 value, MSVCRT_wchar_t *str, MSVCRT_size_t size, int
{ {
unsigned __int64 val; unsigned __int64 val;
unsigned int digit; unsigned int digit;
int is_negative; BOOL is_negative;
MSVCRT_wchar_t buffer[65], *pos; MSVCRT_wchar_t buffer[65], *pos;
size_t len; size_t len;
...@@ -1427,12 +1427,12 @@ int CDECL _i64tow_s(__int64 value, MSVCRT_wchar_t *str, MSVCRT_size_t size, int ...@@ -1427,12 +1427,12 @@ int CDECL _i64tow_s(__int64 value, MSVCRT_wchar_t *str, MSVCRT_size_t size, int
if (value < 0 && radix == 10) if (value < 0 && radix == 10)
{ {
is_negative = 1; is_negative = TRUE;
val = -value; val = -value;
} }
else else
{ {
is_negative = 0; is_negative = FALSE;
val = value; val = value;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment