Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mach_override.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaerean <mmaerean@adobe.com>2012-07-19 18:57:19 +0400
committermaerean <mmaerean@adobe.com>2012-07-19 18:57:19 +0400
commit34048d938af230c2c801e02d6c312f856ac4150a (patch)
tree8dad4bb6bf754449af6ab363f8c097f77a6222ba
parent4b16cfa212dc105d7a9a77637ebb795219fba998 (diff)
Fix the compile time warning when building Chromium for 64 bits:
chromium/trunk/src/third_party/mach_override/mach_override.c:374:59:{374:25-374:97}{374:98-374:99}: error: '&' within '|' [-Werror,-Wbitwise-op-parentheses] 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? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ chromium/trunk/src/third_party/mach_override/mach_override.c:374:59: note: place parentheses around the '&' expression to silence this warning
-rw-r--r--mach_override/mach_override.c2
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;