Skip to content

Commit 3c2d35c

Browse files
fangerertimfel
authored andcommitted
Fix style
1 parent 3f7ee9e commit 3c2d35c

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy/GraalHPyNodes.java

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,10 +1384,10 @@ static int doOtherInt(@SuppressWarnings("unused") GraalHPyContext hpyContext, @S
13841384
}
13851385

13861386
@Specialization(replaces = { //
1387-
"doHandle", "doValidHandle", //
1388-
"doNullLong", "doLong", "doLongDouble", "doLongInt", //
1389-
"doNullOther", "doOther", "doOtherDouble", "doOtherInt" //
1390-
})
1387+
"doHandle", "doValidHandle", //
1388+
"doNullLong", "doLong", "doLongDouble", "doLongInt", //
1389+
"doNullOther", "doOther", "doOtherDouble", "doOtherInt" //
1390+
})
13911391
Object doGeneric(GraalHPyContext hpyContext, Object value,
13921392
@Shared("lib") @CachedLibrary(limit = "2") InteropLibrary lib) {
13931393
if (value instanceof GraalHPyHandle) {
@@ -2053,12 +2053,9 @@ Object doGeneric(GraalHPyContext context, Object typeSpec, Object typeSpecParamA
20532053
writeAttributeToObjectNode.execute(newType, GraalHPyDef.TYPE_HPY_ITEMSIZE, itemSize);
20542054
writeAttributeToObjectNode.execute(newType, GraalHPyDef.TYPE_HPY_FLAGS, flags);
20552055
writeAttributeToObjectNode.execute(newType, GraalHPyDef.TYPE_HPY_IS_PURE, legacy == 0);
2056-
if (newType instanceof PythonClass) {
2057-
PythonClass clazz = (PythonClass) newType;
2058-
clazz.basicSize = basicSize;
2059-
clazz.flags = flags;
2060-
clazz.itemSize = itemSize;
2061-
}
2056+
newType.basicSize = basicSize;
2057+
newType.flags = flags;
2058+
newType.itemSize = itemSize;
20622059

20632060
boolean seenNew = false;
20642061
boolean needsTpTraverse = ((flags & GraalHPyDef.HPy_TPFLAGS_HAVE_GC) != 0);

graalpython/lib-graalpython/modules/hpy/devel/src/runtime/ctx_capsule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ hpy_get_destructor_registry(void)
5252
}
5353
#else
5454
/* borrowed ref */
55-
PyObject *interp_dict =
55+
PyObject *interp_dict =
5656
PyInterpreterState_GetDict(PyThreadState_Get()->interp);
5757
if (interp_dict == NULL) {
58-
PyErr_SetString(PyExc_SystemError,
58+
PyErr_SetString(PyExc_SystemError,
5959
"HPyCapsule destructor registry is not available");
6060
return NULL;
6161
}

graalpython/lib-graalpython/modules/hpy/devel/src/runtime/structseq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ HPyStructSequence_NewType(HPyContext *ctx, HPyStructSequence_Desc *desc)
145145
HPy_Close(ctx, defs);
146146
HPy_Close(ctx, docstring);
147147
return result;
148-
#else
148+
#else
149149
PyStructSequence_Desc d = {
150150
.name = desc->name,
151151
.doc = desc->doc,

0 commit comments

Comments
 (0)