aboutsummaryrefslogtreecommitdiff
path: root/src/serialize.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-05-31 14:57:32 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-05-31 14:56:17 +0200
commitffff0d04425a616c14fc4a562e8ef93d286705f8 (patch)
tree1fe09f283467aa165a518290a90213b11b4a74ef /src/serialize.h
parent8c6df2b4ca1da716e2c834f0c3d18345c73c8c2c (diff)
refactor: Switch serialize to uint8_t (1/n)
Diffstat (limited to 'src/serialize.h')
-rw-r--r--src/serialize.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/serialize.h b/src/serialize.h
index 5ef846b9e9..edf10440c6 100644
--- a/src/serialize.h
+++ b/src/serialize.h
@@ -226,12 +226,8 @@ template<typename Stream, int N> inline void Unserialize(Stream& s, char (&a)[N]
template<typename Stream, int N> inline void Unserialize(Stream& s, unsigned char (&a)[N]) { s.read(CharCast(a), N); }
template<typename Stream> inline void Unserialize(Stream& s, Span<unsigned char>& span) { s.read(CharCast(span.data()), span.size()); }
-template<typename Stream> inline void Serialize(Stream& s, bool a) { char f=a; ser_writedata8(s, f); }
-template<typename Stream> inline void Unserialize(Stream& s, bool& a) { char f=ser_readdata8(s); a=f; }
-
-
-
-
+template <typename Stream> inline void Serialize(Stream& s, bool a) { uint8_t f = a; ser_writedata8(s, f); }
+template <typename Stream> inline void Unserialize(Stream& s, bool& a) { uint8_t f = ser_readdata8(s); a = f; }
/**