diff --git a/c/blake3.c b/c/blake3.c index 692f4b0..78bffc0 100644 --- a/c/blake3.c +++ b/c/blake3.c @@ -351,7 +351,11 @@ INLINE void compress_subtree_to_parent_node( // is set on platforms where MAX_SIMD_DEGREE_OR_2 == 2, GCC emits spurious // warnings here. GCC 8.5 is particularly sensitive, so if you're changing // this code, test it against that version. - while (num_cvs > 2 && num_cvs <= MAX_SIMD_DEGREE_OR_2) { + while (num_cvs > 2 +#if MAX_SIMD_DEGREE_OR_2 > 2 + && num_cvs <= MAX_SIMD_DEGREE_OR_2 +#endif + ) { num_cvs = compress_parents_parallel(cv_array, num_cvs, key, flags, out_array); memcpy(cv_array, out_array, num_cvs * BLAKE3_OUT_LEN);