本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
piumarta
/
javascrypt
镜像来自
https://github.com/mtardy/javascrypt.git
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
1
Wiki
活動
瀏覽代碼
Print error in case of non-integer in arithmetic operation
pull/5/head
mtardy
4 年之前
父節點
566b88dec1
當前提交
2128d6abf9
共有
1 個檔案被更改
,包括
4 行新增
和
0 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
object.c
+ 4
- 0
object.c
查看文件
@ -177,6 +177,10 @@ void println(oop ast);
int
getInteger
(
oop
obj
)
{
if
(
!
isInteger
(
obj
)
)
{
fprintf
(
stderr
,
"
\n
Non-integer in arithmetic expression
\n
"
)
;
exit
(
1
)
;
}
#
if (USE_TAG)
return
(
intptr_t
)
obj
>
>
1
;
#
else
Write
Preview
Loading…
取消
儲存