Fix a build error in 64 bits 83/26983/5
authorJosé Bollo <jose.bollo@open.eurogiciel.org>
Tue, 2 Sep 2014 14:44:49 +0000 (16:44 +0200)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 16 Sep 2014 14:33:30 +0000 (07:33 -0700)
In 64bits archs, size_t is 64bits while int is 32 bits.
In fact, the type used for length on the sierialiser is int.

Change-Id: I6aa2ee89cd909dcebbf8c5436d586569f5f3875d
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
src/server/service/service.cpp

index c734d6a..6539b7f 100644 (file)
@@ -499,7 +499,7 @@ bool Service::processGetAppGroups(MessageBuffer &buffer, MessageBuffer &send, ui
 
     // success
     Serialization::Serialize(send, SECURITY_MANAGER_API_SUCCESS);
-    Serialization::Serialize(send, gids.size());
+    Serialization::Serialize(send, static_cast<int>(gids.size()));
     for (const auto &gid : gids) {
         Serialization::Serialize(send, gid);
     }