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
306c1dc3
Commit
306c1dc3
authored
May 21, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Fix some comparisons between signed and unsigned.
parent
cb8a8182
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
hlpfile.c
programs/winhelp/hlpfile.c
+8
-7
macro.c
programs/winhelp/macro.c
+1
-1
macro.lex.l
programs/winhelp/macro.lex.l
+3
-3
No files found.
programs/winhelp/hlpfile.c
View file @
306c1dc3
...
...
@@ -157,7 +157,7 @@ HLPFILE_PAGE *HLPFILE_PageByOffset(HLPFILE* hlpfile, LONG offset)
*/
HLPFILE_PAGE
*
HLPFILE_PageByHash
(
HLPFILE
*
hlpfile
,
LONG
lHash
)
{
int
i
;
unsigned
int
i
;
if
(
!
hlpfile
)
return
0
;
...
...
@@ -179,7 +179,7 @@ HLPFILE_PAGE *HLPFILE_PageByHash(HLPFILE* hlpfile, LONG lHash)
*/
HLPFILE_PAGE
*
HLPFILE_PageByMap
(
HLPFILE
*
hlpfile
,
LONG
lMap
)
{
int
i
;
unsigned
int
i
;
if
(
!
hlpfile
)
return
0
;
...
...
@@ -1578,12 +1578,13 @@ static BOOL HLPFILE_UncompressLZ77_Phrases(HLPFILE* hlpfile)
*/
static
BOOL
HLPFILE_Uncompress_Phrases40
(
HLPFILE
*
hlpfile
)
{
UINT
num
,
dec_size
,
cpr_size
;
UINT
num
;
INT
dec_size
,
cpr_size
;
BYTE
*
buf_idx
,
*
end_idx
;
BYTE
*
buf_phs
,
*
end_phs
;
short
i
,
n
;
long
*
ptr
,
mask
=
0
;
unsigned
short
bc
;
unsigned
int
i
;
unsigned
short
bc
,
n
;
if
(
!
HLPFILE_FindSubFile
(
"|PhrIndex"
,
&
buf_idx
,
&
end_idx
)
||
!
HLPFILE_FindSubFile
(
"|PhrImage"
,
&
buf_phs
,
&
end_phs
))
return
FALSE
;
...
...
@@ -1649,7 +1650,7 @@ static BOOL HLPFILE_Uncompress_Phrases40(HLPFILE* hlpfile)
static
BOOL
HLPFILE_Uncompress_Topic
(
HLPFILE
*
hlpfile
)
{
BYTE
*
buf
,
*
ptr
,
*
end
,
*
newptr
;
int
i
,
newsize
=
0
;
unsigned
int
i
,
newsize
=
0
;
if
(
!
HLPFILE_FindSubFile
(
"|TOPIC"
,
&
buf
,
&
end
))
{
WINE_WARN
(
"topic0
\n
"
);
return
FALSE
;}
...
...
@@ -1761,7 +1762,7 @@ static void HLPFILE_Uncompress2(const BYTE *ptr, const BYTE *end, BYTE *newptr,
static
BOOL
HLPFILE_Uncompress3
(
char
*
dst
,
const
char
*
dst_end
,
const
BYTE
*
src
,
const
BYTE
*
src_end
)
{
int
idx
,
len
;
unsigned
int
idx
,
len
;
for
(;
src
<
src_end
;
src
++
)
{
...
...
programs/winhelp/macro.c
View file @
306c1dc3
...
...
@@ -233,7 +233,7 @@ void CALLBACK MACRO_BackFlush(void)
if
(
win
)
{
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
win
->
backIndex
;
i
++
)
{
...
...
programs/winhelp/macro.lex.l
View file @
306c1dc3
...
...
@@ -33,7 +33,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(winhelp);
static LPCSTR macroptr;
static LPSTR strptr;
static int quote_stack[32];
static
int
quote_stk_idx = 0;
static
unsigned int
quote_stk_idx = 0;
struct lexret yylval;
#define YY_INPUT(buf,result,max_size)\
...
...
@@ -143,8 +143,8 @@ static int MACRO_CallBoolFunc(FARPROC fn, const char* args, void** ret);
*/
static int MACRO_CheckArgs(void* pa[], unsigned max, const char* args)
{
int
t;
int
len = 0, idx = 0;
int t;
unsigned int
len = 0, idx = 0;
WINE_TRACE("Checking %s\n", args);
...
...
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