Explorar o código

Fixed zero const issue.

woollybah %!s(int64=9) %!d(string=hai) anos
pai
achega
0a7eccc0aa
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      expr.bmx

+ 6 - 1
expr.bmx

@@ -426,7 +426,12 @@ Type TConstExpr Extends TExpr
 							b :+ 1
 							i :+ 1
 						Wend
-						value = String.FromBytes(buf, b)
+						
+						If leading0 Then
+							value = "0"
+						Else
+							value = String.FromBytes(buf, b)
+						End If
 					Else
 						value = "0"
 					End If