Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
piumarta
/
javascrypt
espelho de
https://github.com/mtardy/javascrypt.git
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Lançamentos
1
Wiki
Trabalho
Ver a proveniência
Print error in case of non-integer in arithmetic operation
pull/5/head
mtardy
há 4 anos
ascendente
566b88dec1
cometimento
2128d6abf9
1 ficheiros alterados
com
4 adições
e
0 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+4
-0
object.c
+ 4
- 0
object.c
Ver ficheiro
@ -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é-visualizar
Carregando…
Cancelar
Guardar