Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
piumarta
/
javascrypt
espelhamento de
https://github.com/mtardy/javascrypt.git
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Versões
1
Wiki
Atividade
Ver código fonte
Print error in case of non-integer in arithmetic operation
pull/5/head
mtardy
4 anos atrás
pai
566b88dec1
commit
2128d6abf9
1 arquivos alterados
com
4 adições
e
0 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+4
-0
object.c
+ 4
- 0
object.c
Ver arquivo
@ -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
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar