Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4c3d27df
Commit
4c3d27df
authored
Oct 21, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Sign-compare warnings fix.
parent
86a0b291
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
8 deletions
+11
-8
console.c
dlls/msvcrt/console.c
+1
-1
except.c
dlls/msvcrt/except.c
+2
-1
file.c
dlls/msvcrt/file.c
+5
-3
undname.c
dlls/msvcrt/undname.c
+1
-1
wcs.c
dlls/msvcrt/wcs.c
+2
-2
No files found.
dlls/msvcrt/console.c
View file @
4c3d27df
...
@@ -121,7 +121,7 @@ int CDECL _getch(void)
...
@@ -121,7 +121,7 @@ int CDECL _getch(void)
do
{
do
{
if
(
ReadConsoleInputA
(
MSVCRT_console_in
,
&
ir
,
1
,
&
count
))
if
(
ReadConsoleInputA
(
MSVCRT_console_in
,
&
ir
,
1
,
&
count
))
{
{
int
i
;
unsigned
int
i
;
/* Only interested in ASCII chars */
/* Only interested in ASCII chars */
if
(
ir
.
EventType
==
KEY_EVENT
&&
if
(
ir
.
EventType
==
KEY_EVENT
&&
ir
.
Event
.
KeyEvent
.
bKeyDown
)
ir
.
Event
.
KeyEvent
.
bKeyDown
)
...
...
dlls/msvcrt/except.c
View file @
4c3d27df
...
@@ -478,7 +478,8 @@ static LONG WINAPI msvcrt_exception_filter(struct _EXCEPTION_POINTERS *except)
...
@@ -478,7 +478,8 @@ static LONG WINAPI msvcrt_exception_filter(struct _EXCEPTION_POINTERS *except)
{
{
if
(
handler
!=
MSVCRT_SIG_IGN
)
if
(
handler
!=
MSVCRT_SIG_IGN
)
{
{
int
i
,
float_signal
=
_FPE_INVALID
;
unsigned
int
i
;
int
float_signal
=
_FPE_INVALID
;
sighandlers
[
MSVCRT_SIGFPE
]
=
MSVCRT_SIG_DFL
;
sighandlers
[
MSVCRT_SIGFPE
]
=
MSVCRT_SIG_DFL
;
for
(
i
=
0
;
i
<
sizeof
(
float_exception_map
)
/
for
(
i
=
0
;
i
<
sizeof
(
float_exception_map
)
/
...
...
dlls/msvcrt/file.c
View file @
4c3d27df
...
@@ -1686,7 +1686,7 @@ static int read_i(int fd, void *buf, unsigned int count)
...
@@ -1686,7 +1686,7 @@ static int read_i(int fd, void *buf, unsigned int count)
{
{
if
(
MSVCRT_fdesc
[
fd
].
wxflag
&
WX_TEXT
)
if
(
MSVCRT_fdesc
[
fd
].
wxflag
&
WX_TEXT
)
{
{
int
i
;
DWORD
i
;
/* in text mode, a ctrl-z signals EOF */
/* in text mode, a ctrl-z signals EOF */
for
(
i
=
0
;
i
<
num_read
;
i
++
)
for
(
i
=
0
;
i
<
num_read
;
i
++
)
{
{
...
@@ -2281,7 +2281,8 @@ MSVCRT_wint_t CDECL MSVCRT_fgetwc(MSVCRT_FILE* file)
...
@@ -2281,7 +2281,8 @@ MSVCRT_wint_t CDECL MSVCRT_fgetwc(MSVCRT_FILE* file)
if
(
!
(
MSVCRT_fdesc
[
file
->
_file
].
wxflag
&
WX_TEXT
))
if
(
!
(
MSVCRT_fdesc
[
file
->
_file
].
wxflag
&
WX_TEXT
))
{
{
MSVCRT_wchar_t
wc
;
MSVCRT_wchar_t
wc
;
int
i
,
j
;
unsigned
int
i
;
int
j
;
char
*
chp
,
*
wcp
;
char
*
chp
,
*
wcp
;
wcp
=
(
char
*
)
&
wc
;
wcp
=
(
char
*
)
&
wc
;
for
(
i
=
0
;
i
<
sizeof
(
wc
);
i
++
)
for
(
i
=
0
;
i
<
sizeof
(
wc
);
i
++
)
...
@@ -2324,7 +2325,8 @@ MSVCRT_wint_t CDECL MSVCRT_fgetwc(MSVCRT_FILE* file)
...
@@ -2324,7 +2325,8 @@ MSVCRT_wint_t CDECL MSVCRT_fgetwc(MSVCRT_FILE* file)
int
CDECL
MSVCRT__getw
(
MSVCRT_FILE
*
file
)
int
CDECL
MSVCRT__getw
(
MSVCRT_FILE
*
file
)
{
{
char
*
ch
;
char
*
ch
;
int
i
,
j
,
k
;
int
i
,
k
;
unsigned
int
j
;
ch
=
(
char
*
)
&
i
;
ch
=
(
char
*
)
&
i
;
for
(
j
=
0
;
j
<
sizeof
(
int
);
j
++
)
{
for
(
j
=
0
;
j
<
sizeof
(
int
);
j
++
)
{
k
=
MSVCRT_fgetc
(
file
);
k
=
MSVCRT_fgetc
(
file
);
...
...
dlls/msvcrt/undname.c
View file @
4c3d27df
...
@@ -348,7 +348,7 @@ static char* get_args(struct parsed_symbol* sym, struct array* pmt_ref, BOOL z_t
...
@@ -348,7 +348,7 @@ static char* get_args(struct parsed_symbol* sym, struct array* pmt_ref, BOOL z_t
struct
datatype_t
ct
;
struct
datatype_t
ct
;
struct
array
arg_collect
;
struct
array
arg_collect
;
char
*
args_str
=
NULL
;
char
*
args_str
=
NULL
;
int
i
;
unsigned
int
i
;
str_array_init
(
&
arg_collect
);
str_array_init
(
&
arg_collect
);
...
...
dlls/msvcrt/wcs.c
View file @
4c3d27df
...
@@ -1034,7 +1034,7 @@ INT CDECL MSVCRT_iswxdigit( MSVCRT_wchar_t wc )
...
@@ -1034,7 +1034,7 @@ INT CDECL MSVCRT_iswxdigit( MSVCRT_wchar_t wc )
*/
*/
INT
CDECL
MSVCRT_wcscpy_s
(
MSVCRT_wchar_t
*
wcDest
,
MSVCRT_size_t
numElement
,
const
MSVCRT_wchar_t
*
wcSrc
)
INT
CDECL
MSVCRT_wcscpy_s
(
MSVCRT_wchar_t
*
wcDest
,
MSVCRT_size_t
numElement
,
const
MSVCRT_wchar_t
*
wcSrc
)
{
{
INT
size
=
0
;
MSVCRT_size_t
size
=
0
;
if
(
!
wcDest
||
!
numElement
)
if
(
!
wcDest
||
!
numElement
)
return
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
...
@@ -1067,7 +1067,7 @@ INT CDECL MSVCRT_wcscpy_s( MSVCRT_wchar_t* wcDest, MSVCRT_size_t numElement, con
...
@@ -1067,7 +1067,7 @@ INT CDECL MSVCRT_wcscpy_s( MSVCRT_wchar_t* wcDest, MSVCRT_size_t numElement, con
INT
CDECL
MSVCRT_wcsncpy_s
(
MSVCRT_wchar_t
*
wcDest
,
MSVCRT_size_t
numElement
,
const
MSVCRT_wchar_t
*
wcSrc
,
INT
CDECL
MSVCRT_wcsncpy_s
(
MSVCRT_wchar_t
*
wcDest
,
MSVCRT_size_t
numElement
,
const
MSVCRT_wchar_t
*
wcSrc
,
MSVCRT_size_t
count
)
MSVCRT_size_t
count
)
{
{
INT
size
=
0
;
MSVCRT_size_t
size
=
0
;
if
(
!
wcDest
||
!
numElement
)
if
(
!
wcDest
||
!
numElement
)
return
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment