summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semfold.nim8
1 files changed, 1 insertions, 7 deletions
diff --git a/compiler/semfold.nim b/compiler/semfold.nim
index 1f8efc4de..5ae91d306 100644
--- a/compiler/semfold.nim
+++ b/compiler/semfold.nim
@@ -292,13 +292,7 @@ proc evalOp(m: TMagic, n, a, b, c: PNode; idgen: IdGenerator; g: ModuleGraph): P
     else: result = newStrNodeT("true", n, g)
   of mFloatToStr: result = newStrNodeT($getFloat(a), n, g)
   of mCStrToStr, mCharToStr:
-    if a.kind == nkBracket:
-      var s = ""
-      for b in a.sons:
-        s.add b.getStrOrChar
-      result = newStrNodeT(s, n, g)
-    else:
-      result = newStrNodeT(getStrOrChar(a), n, g)
+    result = newStrNodeT(getStrOrChar(a), n, g)
   of mStrToStr: result = newStrNodeT(getStrOrChar(a), n, g)
   of mEnumToStr: result = newStrNodeT(ordinalValToString(a, g), n, g)
   of mArrToSeq:
l&id=5ac94d26b3691395c40d93109d85fe29d1f14db1'>^
e80465dac ^
3cb3813ee ^








1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20