Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
piumarta
/
javascrypt
réplica de
https://github.com/mtardy/javascrypt.git
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Lanzamientos
1
Wiki
Actividad
Explorar el Código
Print error in case of non-integer in arithmetic operation
pull/5/head
mtardy
hace 4 años
padre
566b88dec1
commit
2128d6abf9
Se han
modificado 1 ficheros
con
4 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+4
-0
object.c
+ 4
- 0
object.c
Ver fichero
@ -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
Escribir
Vista previa
Cargando…
Cancelar
Guardar