Permalink
Browse files

Fixed handling of quoted strings in asm output

  • Loading branch information...
vidarh committed Sep 16, 2014
1 parent 6f1c5a1 commit 74298853d89a97907218aad58b8001accce9e513
Showing with 1 addition and 1 deletion.
  1. +1 −1 emitter.rb
View
@@ -527,7 +527,7 @@ def string(l, str)
local(l)
if str # nil here is bizarre and probably a bug - it means get_arg() was called with nil
# FIXME: Should rewrite a lot more thoroughly here...
str = str.gsub("\"","\\\"").gsub("\n","\\n")
str = str.gsub("\n","\\n")
emit(".string", "\"#{str}\"")
end
end

0 comments on commit 7429885

Please sign in to comment.