diff options
author | Francis Murtagh <francis.murtagh@arm.com> | 2023-08-28 11:06:41 +0100 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2023-09-08 14:10:24 +0000 |
commit | cd0874c5e404f8676d988f7d241aa1f88a037dd2 (patch) | |
tree | 704311d1ee7b5819e99ae37cfb00e94c868c8688 | |
parent | 6a1d506cb0619c6bcf8685ada56ddf4507c2f2d4 (diff) | |
download | armnn-cd0874c5e404f8676d988f7d241aa1f88a037dd2.tar.gz |
Bugfix: fix for -Wno-sign-conversion in profiling test in gcc9
Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
Change-Id: Ibcbe3c0acfd83dc174cb4bbdffcd72c0c8811b33
-rw-r--r-- | src/profiling/test/ProfilingGuidTest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/profiling/test/ProfilingGuidTest.cpp b/src/profiling/test/ProfilingGuidTest.cpp index 0537badc33..2e6b8c059a 100644 --- a/src/profiling/test/ProfilingGuidTest.cpp +++ b/src/profiling/test/ProfilingGuidTest.cpp @@ -1,5 +1,5 @@ // -// Copyright © 2019 Arm Ltd. All rights reserved. +// Copyright © 2019-2023 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // @@ -128,7 +128,7 @@ TEST_CASE("DynamicGuidGeneratorTest") { ProfilingGuidGenerator generator; - for (unsigned int i = 0; i < 100; ++i) + for (uint64_t i = 0; i < 100; ++i) { ProfilingDynamicGuid guid = generator.NextGuid(); CheckDynamicGuid(guid, i); @@ -157,7 +157,8 @@ TEST_CASE("ProfilingGuidThreadTest") }); uint64_t guid = profilingGuidGenerator.NextGuid(); - CHECK(guid == 3000u); + uint64_t expected = 3000U; + CHECK(guid == expected); } } |