소스 검색

Fixed zero const issue.

woollybah 9 년 전
부모
커밋
0a7eccc0aa
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  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