From 7c19717b79b81b3b7fbd0f4fc881aef76a286d10 Mon Sep 17 00:00:00 2001 From: Vincent Blondeau Date: Wed, 20 Dec 2023 16:52:01 +0100 Subject: [PATCH] numbers used for compilation should be using the storing function instead of printing one since it will be used for a block construction --- src/XPath-Core/XPathASTTranslatingWritingNodeVisitor.class.st | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XPath-Core/XPathASTTranslatingWritingNodeVisitor.class.st b/src/XPath-Core/XPathASTTranslatingWritingNodeVisitor.class.st index 13a9efde..9bd7e3b7 100644 --- a/src/XPath-Core/XPathASTTranslatingWritingNodeVisitor.class.st +++ b/src/XPath-Core/XPathASTTranslatingWritingNodeVisitor.class.st @@ -882,7 +882,7 @@ XPathASTTranslatingWritingNodeVisitor >> visitNumberLiteral: aNumberLiteral [ ifFalse: [self emitNumberLiteral: '0.0']] ifFalse: [ "#asString should be OK for all others" - self emitNumberLiteral: number asString]]]. + self emitNumberLiteral: number storeString]]]. ^ aNumberLiteral. ]