python: Better check for integer types
authorMathieu Bridon <bochecha@daitauha.fr>
Thu, 9 Aug 2018 08:27:22 +0000 (10:27 +0200)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 9 Aug 2018 23:49:19 +0000 (16:49 -0700)
commit1e668ca111563b122b16be5506638983b31205b5
tree0654f232c600cae9278cdf77437c7fceed94559e
parent14f1ab998fcdcd8fec43c3da8ef03af4af2d3966
python: Better check for integer types

Python 3 lost the long type: now everything is an int, with the right
size.

This commit makes the script compatible with Python 2 (where we check
for both int and long) and Python 3 (where we only check for int).

Signed-off-by: Mathieu Bridon <bochecha@daitauha.fr>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/compiler/nir/nir_algebraic.py
src/gallium/auxiliary/util/u_format_pack.py