=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: msvcrt: Use BOOL type where appropriate.
Alexandre Julliard
julliard at winehq.org
Fri Sep 27 11:33:13 CDT 2013
Module: wine
Branch: master
Commit: cb7546eaf799fab39a00f5973ff838c45cd7beff
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cb7546eaf799fab39a00f5973ff838c45cd7beff
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Fri Sep 27 08:43:20 2013 +0200
msvcrt: Use BOOL type where appropriate.
---
dlls/msvcrt/string.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/dlls/msvcrt/string.c b/dlls/msvcrt/string.c
index 861389b..5678a89 100644
--- a/dlls/msvcrt/string.c
+++ b/dlls/msvcrt/string.c
@@ -987,7 +987,7 @@ int CDECL _ltoa_s(MSVCRT_long value, char *str, MSVCRT_size_t size, int radix)
{
MSVCRT_ulong val;
unsigned int digit;
- int is_negative;
+ BOOL is_negative;
char buffer[33], *pos;
size_t len;
@@ -1001,12 +1001,12 @@ int CDECL _ltoa_s(MSVCRT_long value, char *str, MSVCRT_size_t size, int radix)
if (value < 0 && radix == 10)
{
- is_negative = 1;
+ is_negative = TRUE;
val = -value;
}
else
{
- is_negative = 0;
+ is_negative = FALSE;
val = value;
}
@@ -1062,7 +1062,7 @@ int CDECL _ltow_s(MSVCRT_long value, MSVCRT_wchar_t *str, MSVCRT_size_t size, in
{
MSVCRT_ulong val;
unsigned int digit;
- int is_negative;
+ BOOL is_negative;
MSVCRT_wchar_t buffer[33], *pos;
size_t len;
@@ -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)
{
- is_negative = 1;
+ is_negative = TRUE;
val = -value;
}
else
{
- is_negative = 0;
+ is_negative = FALSE;
val = value;
}
@@ -1338,7 +1338,7 @@ int CDECL _i64toa_s(__int64 value, char *str, MSVCRT_size_t size, int radix)
{
unsigned __int64 val;
unsigned int digit;
- int is_negative;
+ BOOL is_negative;
char buffer[65], *pos;
size_t len;
@@ -1352,12 +1352,12 @@ int CDECL _i64toa_s(__int64 value, char *str, MSVCRT_size_t size, int radix)
if (value < 0 && radix == 10)
{
- is_negative = 1;
+ is_negative = TRUE;
val = -value;
}
else
{
- is_negative = 0;
+ is_negative = FALSE;
val = value;
}
@@ -1413,7 +1413,7 @@ int CDECL _i64tow_s(__int64 value, MSVCRT_wchar_t *str, MSVCRT_size_t size, int
{
unsigned __int64 val;
unsigned int digit;
- int is_negative;
+ BOOL is_negative;
MSVCRT_wchar_t buffer[65], *pos;
size_t len;
@@ -1427,12 +1427,12 @@ int CDECL _i64tow_s(__int64 value, MSVCRT_wchar_t *str, MSVCRT_size_t size, int
if (value < 0 && radix == 10)
{
- is_negative = 1;
+ is_negative = TRUE;
val = -value;
}
else
{
- is_negative = 0;
+ is_negative = FALSE;
val = value;
}
More information about the wine-cvs
mailing list