X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fcoreparse.c;h=87891dc52cc86f9944dad0aa5973df157e878494;hb=b9519773faa7b3c98915eccb9cb1fd8a8270ee56;hp=d657bac7e96a488d3c021d003188e57772f27979;hpb=4023b1bec2412344e5eea4a33cd85dd662149c67;p=sbcl.git diff --git a/src/runtime/coreparse.c b/src/runtime/coreparse.c index d657bac..87891dc 100644 --- a/src/runtime/coreparse.c +++ b/src/runtime/coreparse.c @@ -42,7 +42,7 @@ #endif -char build_id[] = +unsigned char build_id[] = #include "../../output/build-id.tmp" ; @@ -121,7 +121,7 @@ process_directory(int fd, lispobj *ptr, int count, os_vm_offset_t file_offset) os_vm_address_t addr = (os_vm_address_t) (os_vm_page_size * entry->address); lispobj *free_pointer = (lispobj *) addr + entry->nwords; - long len = os_vm_page_size * entry->page_count; + unsigned long len = os_vm_page_size * entry->page_count; if (len != 0) { os_vm_address_t real_addr; @@ -199,7 +199,8 @@ lispobj load_core_file(char *file, os_vm_offset_t file_offset) { lispobj *header, val, len, *ptr, remaining_len; - int fd = open_binary(file, O_RDONLY), count; + int fd = open_binary(file, O_RDONLY); + unsigned int count; lispobj initial_function = NIL; FSHOW((stderr, "/entering load_core_file(%s)\n", file)); @@ -253,7 +254,7 @@ load_core_file(char *file, os_vm_offset_t file_offset) case BUILD_ID_CORE_ENTRY_TYPE_CODE: SHOW("BUILD_ID_CORE_ENTRY_TYPE_CODE case"); { - int i; + unsigned int i; FSHOW((stderr, "build_id[]=\"%s\"\n", build_id)); FSHOW((stderr, "remaining_len = %d\n", remaining_len)); @@ -341,7 +342,7 @@ load_core_file(char *file, os_vm_offset_t file_offset) size_t fdoffset = (*(ptr+1) + 1) * (os_vm_page_size); size_t offset = 0; long bytes_read; - long data[4096]; + unsigned long data[4096]; lseek(fd, fdoffset + file_offset, SEEK_SET); while ((bytes_read = read(fd, data, (size < 4096 ? size : 4096 ))) > 0) @@ -356,7 +357,7 @@ load_core_file(char *file, os_vm_offset_t file_offset) * elements than the page table. */ if (data[i]) { - page_table[offset].first_object_offset = data[i]; + page_table[offset].region_start_offset = data[i]; } i++; offset++;