diff options
author | Jack Frankland <jack.frankland@arm.com> | 2023-12-01 14:55:19 +0000 |
---|---|---|
committer | Dominic Symes <dominic.symes@arm.com> | 2023-12-05 11:53:10 +0000 |
commit | 438ad7ff03bee24fdd2fa09909cdec01affac399 (patch) | |
tree | 8671637028b24d9cad60e4a6c9d1e0a531d43d0a | |
parent | 39f343498425dd4a0aa0937692a8e630b535e06b (diff) | |
download | reference_model-438ad7ff03bee24fdd2fa09909cdec01affac399.tar.gz |
Fix Format Specifiers for MUL REQUIRES output
Use platform agnostic format specifiers for `int64_t`.
Change-Id: I002d94c1a0c0431ec09fc165a584a8f4b3ddc17d
Signed-off-by: Jack Frankland <jack.frankland@arm.com>
-rw-r--r-- | reference_model/src/ops/ewise_binary.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/reference_model/src/ops/ewise_binary.cc b/reference_model/src/ops/ewise_binary.cc index fab221d..e1713a0 100644 --- a/reference_model/src/ops/ewise_binary.cc +++ b/reference_model/src/ops/ewise_binary.cc @@ -464,8 +464,9 @@ int OpMul<Rank, InDtype, OutDtype>::register_fcn() result = static_cast<int64_t>(a) * static_cast<int64_t>(b) + round; result = result >> shift; - REQUIRE(result >= QMin && result <= QMax, "OpMul: result %ld exceeds valid range [%ld, %ld]", - result, QMin, QMax); + REQUIRE(result >= QMin && result <= QMax, + "OpMul: result %" PRId64 " exceeds valid range [%" PRId64 ", %" PRId64 "]", result, QMin, + QMax); } else { |