File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
src/main/ruby/truffleruby/core Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1387,9 +1387,9 @@ def construct_range(klass)
1387
1387
end
1388
1388
1389
1389
class IOState < State
1390
- def consume ( bytes )
1391
- string = @stream . read ( bytes )
1392
- raise ArgumentError , 'marshal data too short' if string . bytesize < bytes
1390
+ def consume ( bytes_count )
1391
+ string = @stream . read ( bytes_count )
1392
+ raise ArgumentError , 'marshal data too short' if string . bytesize < bytes_count
1393
1393
string
1394
1394
end
1395
1395
@@ -1413,11 +1413,11 @@ def inspect
1413
1413
"#<Marshal::StringState #{ @stream [ @consumed ..-1 ] . inspect } >"
1414
1414
end
1415
1415
1416
- def consume ( bytes )
1417
- raise ArgumentError , 'marshal data too short' if @consumed + bytes > @stream . bytesize
1418
- data = @stream . byteslice @consumed , bytes
1419
- @consumed += bytes
1420
- data
1416
+ def consume ( bytes_count )
1417
+ raise ArgumentError , 'marshal data too short' if @consumed + bytes_count > @stream . bytesize
1418
+ string = @stream . byteslice @consumed , bytes_count
1419
+ @consumed += bytes_count
1420
+ string
1421
1421
end
1422
1422
1423
1423
def consume_byte
You can’t perform that action at this time.
0 commit comments