Skip to content

Commit 8c3de35

Browse files
committed
Put 0 in parens to silence an Xcode warning.
1 parent ec1d5d5 commit 8c3de35

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/pool_alloc.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ struct alloc_pool
99
size_t size; /* extent size */
1010
size_t quantum; /* allocation quantum */
1111
struct pool_extent *extents; /* top extent is "live" */
12-
void (*bomb)(); /* function to call if
13-
* malloc fails */
12+
void (*bomb)(); /* called if malloc fails */
1413
int flags;
1514

1615
/* statistical data */
@@ -49,7 +48,7 @@ pool_create(size_t size, size_t quantum, void (*bomb)(const char*, const char*,
4948
{
5049
struct alloc_pool *pool;
5150

52-
if ((MINALIGN & (MINALIGN - 1)) != 0) {
51+
if ((MINALIGN & (MINALIGN - 1)) != (0)) {
5352
if (bomb)
5453
(*bomb)("Compiler error: MINALIGN is not a power of 2", __FILE__, __LINE__);
5554
return NULL;

0 commit comments

Comments
 (0)