Skip to content

Commit 8080255

Browse files
committed
Use use correct profile in object.__init__
1 parent 2bb6a9f commit 8080255

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/object

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/object/ObjectBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ PNone init(Object self, Object[] arguments, PKeyword[] keywords,
234234
throw raise(TypeError, ErrorMessages.INIT_TAKES_ONE_ARG_OBJECT);
235235
}
236236

237-
if (overridesInit.profile(!overridesBuiltinMethod(type, profileInit, lookupNew, profileNewFactory, BuiltinConstructorsFactory.ObjectNodeFactory.class))) {
237+
if (overridesInit.profile(!overridesBuiltinMethod(type, profileNew, lookupNew, profileNewFactory, BuiltinConstructorsFactory.ObjectNodeFactory.class))) {
238238
throw raise(TypeError, ErrorMessages.INIT_TAKES_ONE_ARG, type);
239239
}
240240
}

0 commit comments

Comments
 (0)