Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
fixed bug in ruby 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
nougad committed Jan 28, 2012
1 parent 87910bc commit 1fb31c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ruby-osc/streamscanner.rb
Expand Up @@ -10,7 +10,11 @@ def initialize
end

def << arg
@scanner << arg
if @scanner.string.frozen? #Bug? in ruby 1.8.7
@scanner.string = @scanner.string + arg
else
@scanner << arg
end
end

def tryparse
Expand Down

0 comments on commit 1fb31c8

Please sign in to comment.