summaryrefslogtreecommitdiff
path: root/lib/coderay/scanner.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2011-04-13 00:33:56 +0000
committermurphy <murphy@rubychan.de>2011-04-13 00:33:56 +0000
commit84bbaddb495a1657433106a85274424e5a56259e (patch)
tree3a7c2204270901761633cc553cc932a8620ce88a /lib/coderay/scanner.rb
parent537e6591a46692bfd3c7ea7b09daddb481eeebf3 (diff)
downloadcoderay-84bbaddb495a1657433106a85274424e5a56259e.tar.gz
fix warning in Ruby 1.8.6
Diffstat (limited to 'lib/coderay/scanner.rb')
-rw-r--r--lib/coderay/scanner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanner.rb b/lib/coderay/scanner.rb
index 3276d4b..8f8ca77 100644
--- a/lib/coderay/scanner.rb
+++ b/lib/coderay/scanner.rb
@@ -96,7 +96,7 @@ module CodeRay
def encode_with_encoding code, target_encoding
if code.encoding == target_encoding
if code.valid_encoding?
- return to_unix code
+ return to_unix(code)
else
source_encoding = guess_encoding code
end