Browse Source

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

woollybah 11 years ago
parent
commit
979d6e2205
1 changed files with 2 additions and 0 deletions
  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 )