mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 22:30:24 +01:00
Fix "cast to pointer from integer of different size"
The script generates code like: pixels = (const GLvoid *) (ptr_is_null != 0) ? NULL : (pc + 80); which causes the above mentioned warning. Add parenthesis around the whole expression to fix it. Signed-off-by: Tomas Carnecky <tom@dbservice.com>
This commit is contained in:
parent
68915fd6fa
commit
5add2c88bd
1 changed files with 1 additions and 1 deletions
|
|
@ -277,7 +277,7 @@ class PrintGlxDispatchFunctions(glX_proto_common.glx_print_proto):
|
|||
if param.is_image():
|
||||
offset = f.offset_of( param.name )
|
||||
|
||||
print '%s %s const %s = (%s) %s(pc + %s);' % (indent, type_string, param.name, type_string, cond, offset)
|
||||
print '%s %s const %s = (%s) (%s(pc + %s));' % (indent, type_string, param.name, type_string, cond, offset)
|
||||
|
||||
if param.depth:
|
||||
print '%s __GLXpixel3DHeader * const hdr = (__GLXpixel3DHeader *)(pc);' % (indent)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue