Closed GoogleCodeExporter closed 9 years ago
Ironically, of all the -Wshorten-64-to-32 issues, this is the most
straightforward to fix.
Attached a patch to fix this against WebKit r140912. Parts of it may need to
be ignored or fixed manually to apply to the ANGLE source.
Original comment by ddkilzer@gmail.com
on 27 Jan 2013 at 10:42
Attachments:
Note that after changing the local 'len' variable to 'size_t' in
string_input(), that causes another -Wshorten-64-to-32 compiler error because
string_input() returns 'int'. However, changing string_input() to return
'size_t' instead works fine because 'result' in the YY_INPUT() macro is
'yyg->yy_n_chars' and yy_n_chars is of type 'yy_size_t' which is 'size_t'.
Original comment by ddkilzer@gmail.com
on 27 Jan 2013 at 10:49
Original comment by kbr@chromium.org
on 7 Feb 2013 at 1:14
Fixed in https://code.google.com/p/angleproject/source/detail?r=1826 .
Original comment by kbr@chromium.org
on 12 Feb 2013 at 3:11
Original issue reported on code.google.com by
ddkilzer@gmail.com
on 27 Jan 2013 at 10:36