Skip to content

Commit aeb3777

Browse files
committed
Fix style after rebase
1 parent d5f156f commit aeb3777

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/ctypes/CFieldBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ static Object getPointerValue(@SuppressWarnings("unused") FieldGet getfunc, PtrV
518518
throw CompilerDirectives.shouldNotReachHere(e);
519519
}
520520
} else {
521-
return factory.createNativeVoidPtr((TruffleObject) p);
521+
return factory.createNativeVoidPtr(p);
522522
}
523523
}
524524

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/ctypes/CtypesModuleBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ Object POINTER(VirtualFrame frame, Object cls,
413413
String buf = PythonUtils.format("LP_%s", name);
414414
Object[] args = new Object[]{buf, PyCPointer, factory().createDict()};
415415
result = callNode.execute(frame, PyCPointerType, args, PKeyword.EMPTY_KEYWORDS);
416-
key = factory().createNativeVoidPtr((TruffleObject) result);
416+
key = factory().createNativeVoidPtr(result);
417417
} else if (isTypeNode.execute(cls)) {
418418
String buf = PythonUtils.format("LP_%s", getNameNode.execute(cls));
419419
PTuple bases = factory().createTuple(new Object[]{PyCPointer});

0 commit comments

Comments
 (0)