Browse Source

Strip leading zeros from ints/longs. C thinks they are octal, otherwise.

woollybah 11 năm trước cách đây
mục cha
commit
979d6e2205
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      expr.bmx

+ 2 - 0
expr.bmx

@@ -260,6 +260,8 @@ Type TConstExpr Extends TExpr
 				Else
 					value=String( val )
 				End If
+			Else
+				value = String.FromLong(value.ToLong())
 			EndIf
 
 		Else If TFloatType( ty )