From 78c4fa40ace8fdb2764b3d259d059327b4bef221 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sun, 5 Jul 2015 09:04:57 -0500
Subject: [PATCH] Fix enqueue func generation for Py2.6

---
 pyopencl/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py
index 787369ac..24ec66b6 100644
--- a/pyopencl/__init__.py
+++ b/pyopencl/__init__.py
@@ -850,7 +850,7 @@ def _add_functionality():
                 # argument to internal function
 
                 gen(
-                        "buf = pack('{arg_char}', long({arg_var})"
+                        "buf = pack('{arg_char}', long({arg_var}))"
                         .format(arg_char=arg_dtype.char, arg_var=arg_var))
                 self._generate_buffer_arg_setter(gen, cl_arg_idx, "buf")
                 cl_arg_idx += 1
-- 
GitLab