Fix a bug about wrong type 47/172947/1
authorJunghoon Park <jh9216.park@samsung.com>
Mon, 19 Mar 2018 05:23:42 +0000 (14:23 +0900)
committerJunghoon Park <jh9216.park@samsung.com>
Mon, 19 Mar 2018 05:23:42 +0000 (14:23 +0900)
- long type was used instead of long long

Change-Id: I445e90ffc48e9f9e8e98abfba681ef0221eaebf7
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
idlc/cpp_gen/cpp_gen_base.cc

index 5af8eb8..8000967 100644 (file)
@@ -30,7 +30,7 @@ CppGeneratorBase::CppGeneratorBase(std::shared_ptr<Document> doc)
     : Generator(doc) {
   type_map_ = {
       {"char", "char"}, {"int", "int"}, {"short", "short"},
-      {"long", "long"}, {"string", "std::string"}, {"bool", "bool"},
+      {"long", "long long"}, {"string", "std::string"}, {"bool", "bool"},
       {"list", "std::list"}, {"float","float"}, {"double", "double"},
       {"bundle", "Bundle"}, {"void", "void"}, {"array", "std::vector"}
   };