Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Commit 45a4be0

Browse files
authored
Merge pull request #51 from ovh/fix/round/integer
fix(op): Fix miss round whith integer values
2 parents 74c8f15 + 6e29f10 commit 45a4be0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tsl/generateWarpScript.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,9 @@ func (protoParser *ProtoParser) getMapper(framework FrameworkStatement, sampleSp
883883
value = "-0" + strings.Trim(attribute.lit, "-")
884884
} else {
885885
value = attribute.lit
886-
if attribute.tokenType == NUMBER && (framework.operator == ADDSERIES || framework.operator == SUBSERIES || framework.operator == MULSERIES || framework.operator == DIVSERIES) {
886+
887+
if (attribute.tokenType == NUMBER || attribute.tokenType == INTEGER) &&
888+
(framework.operator == ADDSERIES || framework.operator == SUBSERIES || framework.operator == MULSERIES || framework.operator == DIVSERIES) {
887889
value += " TODOUBLE "
888890
}
889891

0 commit comments

Comments
 (0)