File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/range Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ protected boolean withStep() {
111
111
}
112
112
113
113
@ ExportMessage
114
- public int length ( ) {
114
+ public int lengthWithState ( @ SuppressWarnings ( "unused" ) ThreadState state ) {
115
115
return length ;
116
116
}
117
117
@@ -120,6 +120,11 @@ public boolean isTrue() {
120
120
return length != 0 ;
121
121
}
122
122
123
+ @ ExportMessage
124
+ public boolean isTrueWithState (@ SuppressWarnings ("unused" ) ThreadState state ) {
125
+ return length != 0 ;
126
+ }
127
+
123
128
/* this is correct because it cannot be subclassed in Python */
124
129
@ ExportMessage
125
130
PIntRangeIterator getIteratorWithState (@ SuppressWarnings ("unused" ) ThreadState threadState ,
You can’t perform that action at this time.
0 commit comments