diff --git a/driver/others/memory.c b/driver/others/memory.c index 6c62c686e..8564b285b 100644 --- a/driver/others/memory.c +++ b/driver/others/memory.c @@ -1015,7 +1015,7 @@ void *blas_memory_alloc(int procpos){ mypos = WhereAmI(); position = mypos; - while (position > NUM_BUFFERS) position >>= 1; + while (position >= NUM_BUFFERS) position >>= 1; do { if (!memory[position].used && (memory[position].pos == mypos)) {