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
a0abde33
Commit
a0abde33
authored
Jan 08, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix some integer to pointer conversion warnings.
parent
d637a552
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
wsprintf.c
dlls/user32/tests/wsprintf.c
+6
-6
No files found.
dlls/user32/tests/wsprintf.c
View file @
a0abde33
...
...
@@ -59,12 +59,12 @@ static void wsprintfWTest(void)
static
void
CharUpperTest
(
void
)
{
int
i
,
out
,
failed
;
INT_PTR
i
,
out
,
failed
;
failed
=
0
;
for
(
i
=
0
;
i
<
256
;
i
++
)
{
out
=
(
int
)
CharUpper
((
LPTSTR
)
i
);
out
=
(
INT_PTR
)
CharUpper
((
LPTSTR
)
i
);
/* printf("%0x ",out); */
if
((
out
>>
16
)
!=
0
)
{
...
...
@@ -72,17 +72,17 @@ static void CharUpperTest(void)
break
;
}
}
ok
(
!
failed
,
"CharUpper failed - 16bit input (0x%0
x) returned 32bit result (0x%0
x)
\n
"
,
i
,
out
);
ok
(
!
failed
,
"CharUpper failed - 16bit input (0x%0
lx) returned 32bit result (0x%0l
x)
\n
"
,
i
,
out
);
}
static
void
CharLowerTest
(
void
)
{
int
i
,
out
,
failed
;
INT_PTR
i
,
out
,
failed
;
failed
=
0
;
for
(
i
=
0
;
i
<
256
;
i
++
)
{
out
=
(
int
)
CharLower
((
LPTSTR
)
i
);
out
=
(
INT_PTR
)
CharLower
((
LPTSTR
)
i
);
/* printf("%0x ",out); */
if
((
out
>>
16
)
!=
0
)
{
...
...
@@ -90,7 +90,7 @@ static void CharLowerTest(void)
break
;
}
}
ok
(
!
failed
,
"CharLower failed - 16bit input (0x%0
x) returned 32bit result (0x%0
x)
\n
"
,
i
,
out
);
ok
(
!
failed
,
"CharLower failed - 16bit input (0x%0
lx) returned 32bit result (0x%0l
x)
\n
"
,
i
,
out
);
}
...
...
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