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
2443c7f6
Commit
2443c7f6
authored
Nov 22, 2004
by
Rein Klazes
Committed by
Alexandre Julliard
Nov 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow negative numbers in RCDATA resources like RC.EXE does.
Fix false out of 16 bits range warning.
parent
c26d15f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
parser.y
tools/wrc/parser.y
+6
-1
No files found.
tools/wrc/parser.y
View file @
2443c7f6
...
...
@@ -1788,11 +1788,15 @@ raw_data: opt_lvc tBEGIN raw_elements tEND {
raw_elements
: tRAWDATA { $$ = $1; }
| tNUMBER { $$ = int2raw_data($1); }
| '-' tNUMBER { $$ = int2raw_data(-($2)); }
| tLNUMBER { $$ = long2raw_data($1); }
| '-' tLNUMBER { $$ = long2raw_data(-($2)); }
| tSTRING { $$ = str2raw_data($1); }
| raw_elements opt_comma tRAWDATA { $$ = merge_raw_data($1, $3); free($3->data); free($3); }
| raw_elements opt_comma tNUMBER { $$ = merge_raw_data_int($1, $3); }
| raw_elements opt_comma '-' tNUMBER { $$ = merge_raw_data_int($1, -($4)); }
| raw_elements opt_comma tLNUMBER { $$ = merge_raw_data_long($1, $3); }
| raw_elements opt_comma '-' tLNUMBER { $$ = merge_raw_data_long($1, -($4)); }
| raw_elements opt_comma tSTRING { $$ = merge_raw_data_str($1, $3); }
;
...
...
@@ -2314,7 +2318,8 @@ static raw_data_t *int2raw_data(int i)
{
raw_data_t *rd;
if((int)((short)i) != i)
if( ( i >= 0 && (int)((unsigned short)i) != i) ||
( i < 0 && (int)((short)i) != i) )
yywarning("Integer constant out of 16bit range (%d), truncated to %d\n", i, (short)i);
rd = new_raw_data();
...
...
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