From cc426df2a6762cb09c6a25c911039ae34660570c Mon Sep 17 00:00:00 2001 From: Eric Kunze Date: Wed, 3 Jan 2024 00:27:59 +0000 Subject: Fix compiler warnings No functional changes Change-Id: I938fecc941b14c065639e27a110ab1feb7c85ba9 Signed-off-by: Eric Kunze --- include/tosa_serialization_handler.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/tosa_serialization_handler.h b/include/tosa_serialization_handler.h index e5448bc..41032fc 100644 --- a/include/tosa_serialization_handler.h +++ b/include/tosa_serialization_handler.h @@ -1,5 +1,5 @@ -// Copyright (c) 2020-2023, ARM Limited. +// Copyright (c) 2020-2024, ARM Limited. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -184,7 +184,7 @@ public: { return _data; } - const bool GetIsUnranked() const + bool GetIsUnranked() const { return _is_unranked; } @@ -216,7 +216,7 @@ public: } void SetDimSize(size_t dim, uint32_t new_size) { - if (dim < 0 || dim >= _shape.size()) + if (dim >= _shape.size()) { printf("dim is out of bound\n"); assert(0); -- cgit v1.2.1