Skip to content

Commit f85a1a8

Browse files
committed
Fix none as default arguments for few methods
1 parent bea7197 commit f85a1a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/zlib/ZLibModuleBuiltins.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ protected ExpectIntNode(Object defaultValue) {
220220
@Override
221221
public abstract Object execute(VirtualFrame frame, Object value);
222222

223-
@Specialization(guards = "isNoValue(none)")
223+
@Specialization
224224
Object none(@SuppressWarnings("unused") PNone none) {
225225
return defaultValue;
226226
}
@@ -243,7 +243,7 @@ public int toInt(PInt x) {
243243
return x.intValue();
244244
}
245245

246-
@Specialization(guards = "!isNoValue(value)", limit = "3")
246+
@Specialization(guards = "!isPNone(value)", limit = "3")
247247
Object doOthers(VirtualFrame frame, Object value,
248248
@Cached("createRec()") ExpectIntNode rec,
249249
@CachedLibrary("value") PythonObjectLibrary lib) {

0 commit comments

Comments
 (0)