Fix some compiler warnings

db4
slava 2009-04-30 23:50:53 -04:00
parent a362ea7d6d
commit b8b7d3861b
3 changed files with 3 additions and 3 deletions

View File

@ -205,7 +205,7 @@ find_architecture() {
write_test_program() { write_test_program() {
echo "#include <stdio.h>" > $C_WORD.c echo "#include <stdio.h>" > $C_WORD.c
echo "int main(){printf(\"%ld\", 8*sizeof(void*)); return 0; }" >> $C_WORD.c echo "int main(){printf(\"%ld\", (long)(8*sizeof(void*))); return 0; }" >> $C_WORD.c
} }
c_find_word_size() { c_find_word_size() {

View File

@ -414,7 +414,7 @@ void factorbug(void)
if(strcmp(cmd,"d") == 0) if(strcmp(cmd,"d") == 0)
{ {
CELL addr = read_cell_hex(); CELL addr = read_cell_hex();
scanf(" "); if(scanf(" ") < 0) break;
CELL count = read_cell_hex(); CELL count = read_cell_hex();
dump_memory(addr,addr+count); dump_memory(addr,addr+count);
} }

View File

@ -50,6 +50,6 @@ void print_fixnum(F_FIXNUM x)
CELL read_cell_hex(void) CELL read_cell_hex(void)
{ {
CELL cell; CELL cell;
scanf(CELL_HEX_FORMAT,&cell); if(scanf(CELL_HEX_FORMAT,&cell) < 0) exit(1);
return cell; return cell;
}; };