diff --git a/pyopencl/cffi_cl.py b/pyopencl/cffi_cl.py index 826fd03642e7ca4fbfec47e198ad3c554e16584f..b446212f4b2a928936fbce2f9eea483dbcd07116 100644 --- a/pyopencl/cffi_cl.py +++ b/pyopencl/cffi_cl.py @@ -338,7 +338,7 @@ class device_type(_ConstantsNamespace): # noqa continue if not name.startswith("_"): bitfield = getattr(cls, name) - if isinstance(bitfield, int) and ((bitfield & value) == bitfield): + if isinstance(bitfield, six.integer_types) and ((bitfield & value) == bitfield): return name if default_format is None: