[Archive] Explicit conversion to unsigned type.
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Thu, 3 Mar 2016 09:00:57 +0000 (10:00 +0100)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Thu, 3 Mar 2016 09:00:57 +0000 (10:00 +0100)
Fixes: SVACE 26893
Change-Id: I8591c18524792586107bef3f7077ddca4b769414
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
src/archive/filesystem_node.cc

index b12708be51f6e5a9e06dd727c3c56b87c216ce59..60a14ef8df9db764d4dbd6999fc5a91681123a85 100644 (file)
@@ -373,7 +373,7 @@ PlatformResult Node::getSize(unsigned long long* size) const
         return LogAndCreateResult(ErrorCode::IO_ERR, "Specified node is not a regular file.");
     }
 
-    *size =  info.st_size;
+    *size =  static_cast<unsigned long long>(info.st_size);
 
     return PlatformResult(ErrorCode::NO_ERROR);
 }