Skip to content

Commit eaabe78

Browse files
committed
Fixes negative value detection
1 parent e2b4173 commit eaabe78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

REDIST/SRC/pgemraux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ extern void Cpigemr2d();
104104
#include <stdio.h>
105105
#include <stdlib.h>
106106
#include <assert.h>
107-
const size_t NEGFLAG = -1;
107+
const size_t NEGFLAG = ~( ((size_t)-1) >> 1);
108108
void *
109109
mr2d_malloc(size_t n)
110110
{

0 commit comments

Comments
 (0)