Skip to content

Commit 7b4bea5

Browse files
author
L'In20Cible
committed
StackData.__setitem__ now accept objects as pointer values.
1 parent 5e2fb49 commit 7b4bea5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/modules/memory/memory_hooks.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
// >> INCLUDES
2929
// ============================================================================
3030
#include "memory_hooks.h"
31+
#include "memory_utilities.h"
3132
#include "memory_pointer.h"
3233
#include "utilities/wrap_macros.h"
3334
#include "utilities/call_python.h"
@@ -220,7 +221,7 @@ void CStackData::SetItem(unsigned int iIndex, object value)
220221
case DATA_TYPE_DOUBLE: SetArgument<double>(m_pHook, iIndex, value); break;
221222
case DATA_TYPE_POINTER:
222223
{
223-
CPointer* pPtr = extract<CPointer*>(value);
224+
CPointer* pPtr = ExtractPointer(value);
224225
SetArgument<unsigned long>(m_pHook, iIndex, object(pPtr->m_ulAddr));
225226
} break;
226227
case DATA_TYPE_STRING: SetArgument<const char *>(m_pHook, iIndex, value); break;

0 commit comments

Comments
 (0)