Skip to content

Commit a9f846e

Browse files
committed
Perftest: Fix VALIDATE_CHUNK_FN define over non-SIMD systems
(int64_t-1) is not a valid C expression, change it to (int64_t)(-1). Signed-off-by: Shmuel Shaul <sshaul@nvidia.com>
1 parent 31a91eb commit a9f846e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/host_validation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ static int64_t validate_neon(const uint8_t *data, uint8_t pattern,
417417
#elif defined(HAVE_NEON)
418418
#define VALIDATE_CHUNK_FN validate_neon
419419
#else
420-
#define VALIDATE_CHUNK_FN(...) ((int64_t-1))
420+
#define VALIDATE_CHUNK_FN(...) ((int64_t)(-1))
421421
#endif
422422

423423
/* Read IB device NUMA node from sysfs. Returns node ID or -1. */

0 commit comments

Comments
 (0)