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
0d92426d
Commit
0d92426d
authored
Feb 26, 2011
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Feb 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wpp: Add explicit casts when mixing unsigned and signed integers.
parent
e7a032c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ppy.y
libs/wpp/ppy.y
+3
-3
No files found.
libs/wpp/ppy.y
View file @
0d92426d
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
else if(cv_signed(v1) && !cv_signed(v2)) \
else if(cv_signed(v1) && !cv_signed(v2)) \
r.val.si = v1.val.si OP (signed) v2.val.ui; \
r.val.si = v1.val.si OP (signed) v2.val.ui; \
else if(!cv_signed(v1) && cv_signed(v2)) \
else if(!cv_signed(v1) && cv_signed(v2)) \
r.val.si =
v1.val.ui OP v2.val.si;
\
r.val.si =
(signed) v1.val.ui OP v2.val.si;
\
else \
else \
r.val.ui = v1.val.ui OP v2.val.ui;
r.val.ui = v1.val.ui OP v2.val.ui;
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
else if(cv_signed(v1) && !cv_signed(v2)) \
else if(cv_signed(v1) && !cv_signed(v2)) \
r.val.sl = v1.val.sl OP (signed long) v2.val.ul; \
r.val.sl = v1.val.sl OP (signed long) v2.val.ul; \
else if(!cv_signed(v1) && cv_signed(v2)) \
else if(!cv_signed(v1) && cv_signed(v2)) \
r.val.sl =
v1.val.ul OP v2.val.sl;
\
r.val.sl =
(signed long) v1.val.ul OP v2.val.sl;
\
else \
else \
r.val.ul = v1.val.ul OP v2.val.ul;
r.val.ul = v1.val.ul OP v2.val.ul;
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
else if(cv_signed(v1) && !cv_signed(v2)) \
else if(cv_signed(v1) && !cv_signed(v2)) \
r.val.sll = v1.val.sll OP (wrc_sll_t) v2.val.ull; \
r.val.sll = v1.val.sll OP (wrc_sll_t) v2.val.ull; \
else if(!cv_signed(v1) && cv_signed(v2)) \
else if(!cv_signed(v1) && cv_signed(v2)) \
r.val.sll =
v1.val.ull OP v2.val.sll;
\
r.val.sll =
(wrc_sll_t) v1.val.ull OP v2.val.sll;
\
else \
else \
r.val.ull = v1.val.ull OP v2.val.ull;
r.val.ull = v1.val.ull OP v2.val.ull;
...
...
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