aboutsummaryrefslogtreecommitdiffstats
path: root/include/afb/c++/binding-wrap.hpp
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2020-03-02 16:59:32 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2020-03-03 10:38:51 +0100
commit9cab553d6ce4e352ba8eb656b0058c7d5336ca73 (patch)
treea300273fc70b997f999b2c7f4151561edf49377d /include/afb/c++/binding-wrap.hpp
parent26b09b0df148d1018681ebe5772d3ec1cbd51526 (diff)
Fix bug in C++ wrapper
Address of the function is much better than adress of the pointer in the stack. BUG-AGL: SPEC-3220 Change-Id: I860b66ac7b8581af5229201556333edcde1f089f Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'include/afb/c++/binding-wrap.hpp')
-rw-r--r--include/afb/c++/binding-wrap.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/afb/c++/binding-wrap.hpp b/include/afb/c++/binding-wrap.hpp
index a9984690..9844a070 100644
--- a/include/afb/c++/binding-wrap.hpp
+++ b/include/afb/c++/binding-wrap.hpp
@@ -782,7 +782,7 @@ constexpr afb_verb_t verb(
session,
auth,
glob,
- (void*)(&callback)
+ *(void**)(&callback)
);
}