Skip to content

Commit 9e28ed5

Browse files
committed
Holdover from the dark ages (1.8.x compat)
1 parent 27e8244 commit 9e28ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scanner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def expect_str(str, &block)
119119
buf.position = self.position
120120
str.each_byte do |s|
121121
c = peek
122-
if !c || c.chr.ord != s
122+
if !c || c.ord != s
123123
unget(buf) if !buf.empty?
124124
return false
125125
end

0 commit comments

Comments
 (0)