celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From griccia...@apache.org
Subject celix git commit: Fixed minor Coverity issue
Date Wed, 04 Oct 2017 06:34:31 GMT
Repository: celix
Updated Branches:
  refs/heads/develop f7951b2bc -> f00f0da11


Fixed minor Coverity issue


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/f00f0da1
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/f00f0da1
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/f00f0da1

Branch: refs/heads/develop
Commit: f00f0da115170797cb06031de90145e0df8c147d
Parents: f7951b2
Author: gricciardi <gricciardi@apache.org>
Authored: Wed Oct 4 08:34:16 2017 +0200
Committer: gricciardi <gricciardi@apache.org>
Committed: Wed Oct 4 08:34:16 2017 +0200

----------------------------------------------------------------------
 examples/dm_example_cxx/phase1/src/Phase1Cmp.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/f00f0da1/examples/dm_example_cxx/phase1/src/Phase1Cmp.cc
----------------------------------------------------------------------
diff --git a/examples/dm_example_cxx/phase1/src/Phase1Cmp.cc b/examples/dm_example_cxx/phase1/src/Phase1Cmp.cc
index 072728c..e82f381 100644
--- a/examples/dm_example_cxx/phase1/src/Phase1Cmp.cc
+++ b/examples/dm_example_cxx/phase1/src/Phase1Cmp.cc
@@ -40,7 +40,7 @@ void Phase1Cmp::deinit() {
 
 int Phase1Cmp::getData() {
     counter += 1;
-    return rand();
+    return (int)random();
 };
 
 std::string Phase1Cmp::getName() {


Mime
View raw message