Commit 2876dfc9 authored by Connor Abbott's avatar Connor Abbott

divide correctly when parsing uniforms

Python 3, lol
parent bec2745f
......@@ -1908,7 +1908,7 @@ def scan_src_arg(string, stage):
match = UNIFORM_SRC.match(string)
if match:
idx = int(match.group(1))
return UniformToken(idx / 2, bool(idx % 2))
return UniformToken(idx // 2, bool(idx % 2))
raise ParsingException('Invalid src %s' % string)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment