summaryrefslogtreecommitdiffstats
path: root/include/afb
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:40:30 +0100
commit591f9d339d6467e4b53be561aedda90630a9ddbf (patch)
tree3f2aab8da052733a2d852025f94e56ff89b2f4fc /include/afb
parent38c6516c7ed567a5c4b5f961c7ab3f61b9362c0d (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')
-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)
);
}