summaryrefslogtreecommitdiff
path: root/src/components/formatters/src/formatter_json_rpc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/formatters/src/formatter_json_rpc.cc')
-rw-r--r--src/components/formatters/src/formatter_json_rpc.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/components/formatters/src/formatter_json_rpc.cc b/src/components/formatters/src/formatter_json_rpc.cc
index 07d45d5855..134520bdb6 100644
--- a/src/components/formatters/src/formatter_json_rpc.cc
+++ b/src/components/formatters/src/formatter_json_rpc.cc
@@ -122,8 +122,7 @@ bool FormatterJsonRpc::ToString(const ns_smart_objects::SmartObject& obj,
if (ns_smart_objects::SmartType_Integer != code.getType()) {
result = false;
} else {
- root[kResult][kCode] =
- utils::ConvertInt64ToLongLongInt(code.asInt());
+ root[kResult][kCode] = code.asInt();
}
}
} else if (kNotification == message_type) {
@@ -139,8 +138,7 @@ bool FormatterJsonRpc::ToString(const ns_smart_objects::SmartObject& obj,
if (ns_smart_objects::SmartType_Integer != code.getType()) {
result = false;
} else {
- root[kError][kCode] =
- utils::ConvertInt64ToLongLongInt(code.asInt());
+ root[kError][kCode] = code.asInt();
}
}
}
@@ -180,7 +178,7 @@ bool FormatterJsonRpc::SetId(const ns_smart_objects::SmartObject& params,
params.getElement(strings::S_CORRELATION_ID);
if (ns_smart_objects::SmartType_Integer == id.getType()) {
- id_container[kId] = utils::ConvertUInt64ToLongLongUInt(id.asUInt());
+ id_container[kId] = id.asUInt();
result = true;
}
}