diff options
author | Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net> | 2012-07-19 21:45:57 +0400 |
---|---|---|
committer | Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net> | 2012-07-19 21:45:57 +0400 |
commit | d8ff66ed7b17eab1527db89c376fda00cec4903e (patch) | |
tree | 8dad4bb6bf754449af6ab363f8c097f77a6222ba | |
parent | 4b16cfa212dc105d7a9a77637ebb795219fba998 (diff) | |
parent | 34048d938af230c2c801e02d6c312f856ac4150a (diff) |
Merge pull request #37 from maerean/patch-1
Fix the compile time warning when building Chromium for 64 bits:
-rw-r--r-- | mach_override/mach_override.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mach_override/mach_override.c b/mach_override/mach_override.c index 6841ab8..64dd0ab 100644 --- a/mach_override/mach_override.c +++ b/mach_override/mach_override.c @@ -393,7 +393,7 @@ allocateBranchIsland( vm_address_t first = 0xfeffffff; vm_address_t last = 0xfe000000 + pageSize; #elif defined(__x86_64__) - vm_address_t first = (uint64_t)originalFunctionAddress & ~(uint64_t)(((uint64_t)1 << 31) - 1) | ((uint64_t)1 << 31); // start in the middle of the page? + vm_address_t first = ((uint64_t)originalFunctionAddress & ~(uint64_t)(((uint64_t)1 << 31) - 1)) | ((uint64_t)1 << 31); // start in the middle of the page? vm_address_t last = 0x0; #else vm_address_t first = 0xffc00000; |