Fix bug in C++ wrapper 47/24147/2
authorJose Bollo <jose.bollo@iot.bzh>
Mon, 2 Mar 2020 15:59:32 +0000 (16:59 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 3 Mar 2020 09:38:51 +0000 (10:38 +0100)
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>
include/afb/c++/binding-wrap.hpp

index a998469..9844a07 100644 (file)
@@ -782,7 +782,7 @@ constexpr afb_verb_t verb(
                session,
                auth,
                glob,
-               (void*)(&callback)
+               *(void**)(&callback)
        );
 }