summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-02-19 16:00:53 -0500
committerMarge Bot <[email protected]>2020-03-06 01:06:14 +0000
commit9dbf5ec9f7844dda9d2473a3168e3f8b0009a66d (patch)
tree71c2c7a9d9a3bcaf6c2820d86f678f49b9e1103c /src/mapi
parent313e98fb8111c21fc89d2422d50dc12daec4efc6 (diff)
glthread: use int instead of size_t where it's OK
Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/glapi/gen/gl_marshal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_marshal.py b/src/mapi/glapi/gen/gl_marshal.py
index 1e5f75da399..c12a086942b 100644
--- a/src/mapi/glapi/gen/gl_marshal.py
+++ b/src/mapi/glapi/gen/gl_marshal.py
@@ -237,7 +237,7 @@ class PrintCode(gl_XML.gl_print_base):
if p.img_null_flag:
size = '({0} ? {1} : 0)'.format(p.name, size)
size_terms.append(size)
- out('size_t cmd_size = {0};'.format(' + '.join(size_terms)))
+ out('int cmd_size = {0};'.format(' + '.join(size_terms)))
out('{0} *cmd;'.format(struct))
out('debug_print_marshal("{0}");'.format(func.name))