summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-01-11 01:33:13 +0100
committerAraq <rumpf_a@web.de>2015-01-11 01:33:25 +0100
commit350fbc6aca14f06dab3e2af1c92fcf811b6275ef (patch)
tree024690dd186809e67fa7665b7edc654b2fbe5def /compiler
parentfffaae06cebb079de04b3c0f00300a364f396fee (diff)
downloadNim-350fbc6aca14f06dab3e2af1c92fcf811b6275ef.tar.gz
fixes #1907
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ccgstmts.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ccgstmts.nim b/compiler/ccgstmts.nim
index 129093191..a3bf4d3bb 100644
--- a/compiler/ccgstmts.nim
+++ b/compiler/ccgstmts.nim
@@ -930,8 +930,8 @@ proc genAsmOrEmitStmt(p: BProc, t: PNode, isAsmStmt=false): PRope =
   if isAsmStmt and hasGnuAsm in CC[cCompiler].props:
     for x in splitLines(res):
       var j = 0
-      while x[j] in {' ', '\t'}: inc(j)
-      if x[j] == ':' and x[j+1] == '"' or x[j] == '"':
+      while x[j] in {' ', '\t', ':'}: inc(j)
+      if x[j] == '"':
         # some clobber register list:
         app(result, x); app(result, tnl)
       elif x[j] != '\0':