From 5cb57e5102bbfebc2484fb3e3f566cea1bb3a12c Mon Sep 17 00:00:00 2001
From: Yichao Yu <yyc1992@gmail.com>
Date: Thu, 19 Jun 2014 06:22:11 +0800
Subject: [PATCH] use ArgBuffer instead of SimpleOutArg

---
 src/c_wrapper/clhelper.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/c_wrapper/clhelper.h b/src/c_wrapper/clhelper.h
index d8e5556b..1460d2ad 100644
--- a/src/c_wrapper/clhelper.h
+++ b/src/c_wrapper/clhelper.h
@@ -136,7 +136,7 @@ get_opaque_info(cl_int (*func)(ArgTypes...), const char *name,
 {
     typename CLObj::cl_type param_value;
     call_guarded(func, name, args..., sizeof(param_value),
-                 out_arg(&param_value), nullptr);
+                 arg_buf(param_value), nullptr);
     generic_info info;
     info.dontfree = 0;
     info.opaque_class = CLObj::class_id;
@@ -178,7 +178,7 @@ get_int_info(cl_int (*func)(ArgTypes...), const char *name,
 {
     pyopencl_buf<T> param_value;
     call_guarded(func, name, args..., sizeof(T),
-                 out_arg(param_value.get()), nullptr);
+                 arg_buf(*param_value.get()), nullptr);
     generic_info info;
     info.dontfree = 0;
     info.opaque_class = CLASS_NONE;
-- 
GitLab