[Tizen] Fixed SVACE errors 36/302636/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 5 Dec 2023 16:38:13 +0000 (16:38 +0000)
committerEunki Hong <eunkiki.hong@samsung.com>
Mon, 11 Dec 2023 10:04:44 +0000 (19:04 +0900)
Change-Id: Icfc1abe106993a3c59107ba06be9e0b3ffd660d6

builder/dali-builder.cpp
examples/builder/examples.cpp
examples/rendering-basic-pbr/ktx-loader.cpp

index ba5a101..e7e33e6 100644 (file)
@@ -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;
     }
   }
index fd5d42a..1e91d29 100644 (file)
@@ -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;
   }
 
index 89734be..11c4532 100644 (file)
@@ -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;
   }