summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-08-16 13:14:55 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-08-16 13:14:55 +0200
commitd134daa2b0658d8624988062cb10e536ca34c0b8 (patch)
tree929c8634d82359944eaf281f117ae6f2838377a4
parentfbbe3ffac79b9f4db4b255ffc82ca606859ee78f (diff)
Fix referencing after cast
-rw-r--r--modules/codec-json/c++/json.tmpl.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/codec-json/c++/json.tmpl.hpp b/modules/codec-json/c++/json.tmpl.hpp
index a741abd..6193e3f 100644
--- a/modules/codec-json/c++/json.tmpl.hpp
+++ b/modules/codec-json/c++/json.tmpl.hpp
@@ -58,7 +58,7 @@ struct json_encode<schema::Bool, FromEncode> {
}
{
- error err = buff.push(reinterpret_cast<const uint8_t*>(&view[0]), view_s);
+ error err = buff.push(*reinterpret_cast<const uint8_t*>(&view[0]), view_s);
if(!err.template is_type<err::no_error>()){
return std::move(err);
}