Package: elektra / 0.8.7-4

ambiguous_keyset_ctor.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Author: Pino Toscano <pino@debian.org>
Description: Workaround in bindings the ambiguous C++ KeySet varargs ctors
 Workaround in the Python and Lua bindings the ambiguous varargs constructors
 of the C++ KeySet implementation, by providing twice the end marker.
Bug: https://github.com/ElektraInitiative/libelektra/issues/42
Origin: vendor
Forwarded: not-needed
Last-Update: 2014-08-12

--- a/src/bindings/swig/lua/kdb.i
+++ b/src/bindings/swig/lua/kdb.i
@@ -245,7 +245,7 @@
 
 %extend kdb::KeySet {
   KeySet(size_t alloc) {
-    return new kdb::KeySet(alloc, KS_END);
+    return new kdb::KeySet(alloc, KS_END, KS_END);
   }
 
   size_t __len(void *) {
--- a/src/bindings/swig/python3/kdb.i
+++ b/src/bindings/swig/python3/kdb.i
@@ -214,7 +214,7 @@
 
 %extend kdb::KeySet {
   KeySet(size_t alloc) {
-   return new kdb::KeySet(alloc, KS_END);
+   return new kdb::KeySet(alloc, KS_END, KS_END);
   }
 
   %pythoncode %{