summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-11-26 16:07:11 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2019-11-26 16:07:11 +0100
commita34022eba3e81e2f1dcce398b88eeb7d17cf8280 (patch)
tree4ba2ab1d79a41dc6497f67f20134ff833942b739
parent55b610b027b74e70228f5fe51c42c71de9e16a7c (diff)
Add generator for boolean fields
Bug-AGL: SPEC-2779 Bug-AGL: SPEC-2976 Change-Id: Idaf74af197866152d9094941b44e7b752d0ccf80 Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh> Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9f7969f..9961105 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -170,8 +170,8 @@ std::ostream& operator<<(std::ostream& o, const generator<openxc::signal>& v)
}
std::string multi = "std::make_pair<bool, int>(" + multi_first + ", " + std::to_string(v.v_.multiplex().second) + ")";
o << v.line_prefix_ << '\t' << multi << ",// multiplex\n"
- << v.line_prefix_ << '\t' << v.v_.is_big_endian() << ",// is_big_endian\n"
- << v.line_prefix_ << '\t' << v.v_.is_signed() << ",// is_signed\n"
+ << v.line_prefix_ << '\t' << gen(v.v_.is_big_endian()) << ",// is_big_endian\n"
+ << v.line_prefix_ << '\t' << gen(v.v_.is_signed()) << ",// is_signed\n"
<< v.line_prefix_ << "\t" << gen(v.v_.unit()) << "// unit\n"
<< v.line_prefix_ << "})}";
return o;