Skip to content

Commit

Permalink
fix Mi M parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed Feb 18, 2020
1 parent 159629e commit 52085b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions v5/pkg/tsl/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func (l *Listener) ExitNumberLiteral(c *parser.NumberLiteralContext) {
s = s[:len(s)-1]
case "M":
multiplier = math.Pow(1024, 2)
s = s[:len(s)-1]
case "G":
multiplier = math.Pow(1024, 3)
s = s[:len(s)-1]
Expand Down

0 comments on commit 52085b0

Please sign in to comment.