summaryrefslogtreecommitdiffstats
path: root/test/test.cpp
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-02-23 12:37:56 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-02-25 00:45:21 -0500
commit134d2cb2b679ed64aee8d5d841de41577928c6d2 (patch)
tree04186072f77d49fa77f9904d5c8673d46c1ac145 /test/test.cpp
parentefb7885e0bb97a0e2f65457ff4f931cc5a3a1fc8 (diff)
downloadphosphor-inventory-manager-134d2cb2b679ed64aee8d5d841de41577928c6d2.tar.gz
phosphor-inventory-manager-134d2cb2b679ed64aee8d5d841de41577928c6d2.zip
pimgen: Use cast instead of integer literals
This ends up being more portable. Change-Id: I9e4e0414329878316a110a5234aeea4677b877e8 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'test/test.cpp')
-rw-r--r--test/test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test.cpp b/test/test.cpp
index d36aa24..407a0cc 100644
--- a/test/test.cpp
+++ b/test/test.cpp
@@ -207,7 +207,9 @@ void runTests()
},
{
"xyz.openbmc_project.Example.Iface2",
- {{"ExampleProperty2", "test2"s}, {"ExampleProperty3", 0ll}}
+ { {"ExampleProperty2", "test2"s},
+ {"ExampleProperty3", static_cast<int64_t>(0ll)}
+ }
},
};
OpenPOWER on IntegriCloud