summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend_alloc.c2
-rw-r--r--Zend/zend_alloc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c
index 8e4871f8f5..b1f6841a21 100644
--- a/Zend/zend_alloc.c
+++ b/Zend/zend_alloc.c
@@ -103,7 +103,7 @@ ZEND_API zend_alloc_globals alloc_globals;
unsigned int real_size; \
unsigned int cache_index;
-#define REAL_SIZE(size) ((size+7) & 0xFFFFFFF8)
+#define REAL_SIZE(size) ((size+7) & ~0x7)
#define CALCULATE_REAL_SIZE_AND_CACHE_INDEX(size) \
real_size = REAL_SIZE(size); \
diff --git a/Zend/zend_alloc.h b/Zend/zend_alloc.h
index 4ed35185ff..2e15f17d42 100644
--- a/Zend/zend_alloc.h
+++ b/Zend/zend_alloc.h
@@ -52,7 +52,7 @@ typedef union _align_test {
long lng;
} align_test;
-#define MAX_CACHED_MEMORY 16
+#define MAX_CACHED_MEMORY 16
#define MAX_CACHED_ENTRIES 24
#if (defined (__GNUC__) && __GNUC__ >= 2)
#define PLATFORM_ALIGNMENT (__alignof__ (align_test))