Add wrapping constructor for (signed) long long
Completely analogous to how unsigned long long is handled
This commit is contained in:
parent
fbb7208b85
commit
3b22d5accf
2 changed files with 6 additions and 0 deletions
|
|
@ -72,6 +72,10 @@ PyObject *ctor_llvmwrap_ull(llvmwrap_ull ull)
|
|||
return PyLong_FromUnsignedLongLong(ull);
|
||||
}
|
||||
|
||||
PyObject *ctor_llvmwrap_ll(llvmwrap_ll ll)
|
||||
{
|
||||
return PyLong_FromLongLong(ll);
|
||||
}
|
||||
|
||||
/*===----------------------------------------------------------------------===*/
|
||||
/* Helper functions */
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@
|
|||
/*===----------------------------------------------------------------------===*/
|
||||
|
||||
typedef unsigned long long llvmwrap_ull;
|
||||
typedef long long llvmwrap_ll;
|
||||
|
||||
/*===----------------------------------------------------------------------===*/
|
||||
/* Type ctor/dtor */
|
||||
|
|
@ -98,6 +99,7 @@ _declare_std_ctor(LLVMTargetMachineRef)
|
|||
/* standard types */
|
||||
_declare_std_ctor(int)
|
||||
_declare_std_ctor(llvmwrap_ull)
|
||||
_declare_std_ctor(llvmwrap_ll)
|
||||
|
||||
|
||||
/*===----------------------------------------------------------------------===*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue