summaryrefslogtreecommitdiff
path: root/GenCs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'GenCs.cs')
-rw-r--r--GenCs.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/GenCs.cs b/GenCs.cs
index 841cf64..85eb833 100644
--- a/GenCs.cs
+++ b/GenCs.cs
@@ -270,9 +270,9 @@ public class GenCs : GenTyped
}
}
- protected override void WriteCoercedLiteral(CiType type, CiLiteral literal)
+ protected override void WriteCoercedLiteral(CiType type, CiExpr literal)
{
- WriteLiteral(literal.Value);
+ literal.Accept(this, CiPriority.Argument);
if (type == CiSystem.FloatType)
Write('f');
}