From 54bc2118d675863956983e6687da32fcd64c4e0d Mon Sep 17 00:00:00 2001 From: Adeel Kazmi Date: Tue, 5 Dec 2023 16:38:13 +0000 Subject: [PATCH] Fixed SVACE errors --- builder/dali-builder.cpp | 4 ++-- examples/builder/examples.cpp | 4 ++-- examples/rendering-basic-pbr/ktx-loader.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/builder/dali-builder.cpp b/builder/dali-builder.cpp index ba5a101..e7e33e6 100644 --- a/builder/dali-builder.cpp +++ b/builder/dali-builder.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -145,7 +145,7 @@ bool FileWatcher::FileHasChanged(void) } else { - mLastTime = buf.st_mtime; + mLastTime = std::time_t(buf.st_mtime); return false; } } diff --git a/examples/builder/examples.cpp b/examples/builder/examples.cpp index fd5d42a..1e91d29 100644 --- a/examples/builder/examples.cpp +++ b/examples/builder/examples.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -205,7 +205,7 @@ bool FileWatcher::FileHasChanged(void) else { const bool result = buf.st_mtime > mLastTime; - mLastTime = buf.st_mtime; + mLastTime = std::time_t(buf.st_mtime); return result; } diff --git a/examples/rendering-basic-pbr/ktx-loader.cpp b/examples/rendering-basic-pbr/ktx-loader.cpp index 89734be..11c4532 100644 --- a/examples/rendering-basic-pbr/ktx-loader.cpp +++ b/examples/rendering-basic-pbr/ktx-loader.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -108,7 +108,7 @@ bool LoadCubeMapFromKtxFile(const std::string& path, CubeData& cubedata) } // Skip the key-values: - if(fseek(fp, header.bytesOfKeyValueData, SEEK_CUR)) + if(fseek(fp, (long int)(header.bytesOfKeyValueData), SEEK_CUR)) { return false; } -- libgit2 0.21.4