Clamp LG_VADDR for 32-bit builds on x64.

This commit is contained in:
Jason Evans 2017-03-20 17:37:02 -07:00
parent ad91762635
commit bda12bd925

View File

@ -442,6 +442,9 @@ typedef unsigned __int32 uint32_t;
if (f == NULL) { if (f == NULL) {
return 1; return 1;
} }
if (vaddr > (sizeof(void *) << 3)) {
vaddr = sizeof(void *) << 3;
}
fprintf(f, "%u", vaddr); fprintf(f, "%u", vaddr);
fclose(f); fclose(f);
return 0; return 0;