Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4bb92e18
Commit
4bb92e18
authored
Dec 10, 2012
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp100: Avoid signed-unsigned integer comparisons.
parent
fa59d1e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
ios.c
dlls/msvcp100/ios.c
+17
-7
No files found.
dlls/msvcp100/ios.c
View file @
4bb92e18
...
...
@@ -2074,7 +2074,7 @@ FILE* __cdecl _Fiopen_wchar(const wchar_t *name, int mode, int prot)
};
int
real_mode
=
mode
&
~
(
OPENMODE_ate
|
OPENMODE__Nocreate
|
OPENMODE__Noreplace
|
OPENMODE_binary
);
in
t
mode_idx
;
size_
t
mode_idx
;
FILE
*
f
=
NULL
;
TRACE
(
"(%s %d %d)
\n
"
,
debugstr_w
(
name
),
mode
,
prot
);
...
...
@@ -2218,7 +2218,8 @@ int __thiscall basic_filebuf_char_uflow(basic_filebuf_char *this)
{
char
ch
,
buf
[
128
],
*
to_next
;
const
char
*
buf_next
;
int
c
,
i
;
int
c
;
size_t
i
;
TRACE
(
"(%p)
\n
"
,
this
);
...
...
@@ -2247,8 +2248,12 @@ int __thiscall basic_filebuf_char_uflow(basic_filebuf_char *this)
continue
;
}
for
(
i
--
;
i
>=
buf_next
-
buf
;
i
--
)
ungetc
(
buf
[
i
],
this
->
file
);
{
ptrdiff_t
j
;
for
(
j
=
--
i
;
j
>=
buf_next
-
buf
;
j
--
)
ungetc
(
buf
[
j
],
this
->
file
);
}
return
ch
;
case
CODECVT_noconv
:
return
(
unsigned
char
)
buf
[
0
];
...
...
@@ -2666,7 +2671,8 @@ unsigned short __thiscall basic_filebuf_wchar_uflow(basic_filebuf_wchar *this)
wchar_t
ch
,
*
to_next
;
char
buf
[
128
];
const
char
*
buf_next
;
int
c
,
i
;
int
c
;
size_t
i
;
TRACE
(
"(%p)
\n
"
,
this
);
...
...
@@ -2692,8 +2698,12 @@ unsigned short __thiscall basic_filebuf_wchar_uflow(basic_filebuf_wchar *this)
if
(
to_next
==
&
ch
)
continue
;
for
(
i
--
;
i
>=
buf_next
-
buf
;
i
--
)
ungetc
(
buf
[
i
],
this
->
file
);
{
ptrdiff_t
j
;
for
(
j
=
--
i
;
j
>=
buf_next
-
buf
;
j
--
)
ungetc
(
buf
[
j
],
this
->
file
);
}
return
ch
;
case
CODECVT_noconv
:
if
(
i
+
1
<
sizeof
(
wchar_t
))
...
...
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