使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
piumarta
/
javascrypt
镜像自地址
https://github.com/mtardy/javascrypt.git
关注
1
点赞
0
派生
0
代码
工单
0
版本发布
1
百科
动态
浏览代码
Print error in case of non-integer in arithmetic operation
pull/5/head
mtardy
4 年前
父节点
566b88dec1
当前提交
2128d6abf9
共有
1 个文件被更改
,包括
4 次插入
和
0 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+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
撰写
预览
正在加载...
取消
保存