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
d8efcc9c
Commit
d8efcc9c
authored
Feb 19, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Feb 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Avoid signed-unsigned integer comparisons.
parent
5360780a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
file.c
dlls/msvcrt/file.c
+5
-4
locale.c
dlls/msvcrt/locale.c
+1
-1
No files found.
dlls/msvcrt/file.c
View file @
d8efcc9c
...
...
@@ -363,7 +363,7 @@ static int msvcrt_alloc_fd(HANDLE hand, int flag)
/* caller must hold the files lock */
static
MSVCRT_FILE
*
msvcrt_alloc_fp
(
void
)
{
unsigned
int
i
;
int
i
;
MSVCRT_FILE
*
file
;
for
(
i
=
3
;
i
<
MSVCRT_max_streams
;
i
++
)
...
...
@@ -1047,7 +1047,8 @@ int CDECL MSVCRT__fcloseall(void)
/* free everything on process exit */
void
msvcrt_free_io
(
void
)
{
int
i
;
unsigned
int
i
;
int
j
;
MSVCRT__fcloseall
();
/* The Win32 _fcloseall() function explicitly doesn't close stdin,
...
...
@@ -1061,9 +1062,9 @@ void msvcrt_free_io(void)
for
(
i
=
0
;
i
<
sizeof
(
MSVCRT___pioinfo
)
/
sizeof
(
MSVCRT___pioinfo
[
0
]);
i
++
)
MSVCRT_free
(
MSVCRT___pioinfo
[
i
]);
for
(
i
=
0
;
i
<
MSVCRT_stream_idx
;
i
++
)
for
(
j
=
0
;
j
<
MSVCRT_stream_idx
;
j
++
)
{
MSVCRT_FILE
*
file
=
msvcrt_get_file
(
i
);
MSVCRT_FILE
*
file
=
msvcrt_get_file
(
j
);
if
(
file
<
MSVCRT__iob
||
file
>=
MSVCRT__iob
+
_IOB_ENTRIES
)
{
((
file_crit
*
)
file
)
->
crit
.
DebugInfo
->
Spare
[
0
]
=
0
;
...
...
dlls/msvcrt/locale.c
View file @
d8efcc9c
...
...
@@ -492,7 +492,7 @@ char* CDECL _Getmonths(void)
void
*
CDECL
_Gettnames
(
void
)
{
MSVCRT___lc_time_data
*
ret
,
*
cur
=
get_locinfo
()
->
lc_time_curr
;
int
i
,
size
=
sizeof
(
MSVCRT___lc_time_data
);
unsigned
int
i
,
size
=
sizeof
(
MSVCRT___lc_time_data
);
TRACE
(
"
\n
"
);
...
...
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