fix(util/object_serializer): do not compare chars

This commit is contained in:
Gabriel Ebner 2017-06-19 20:48:24 +02:00
parent b826bdfe43
commit 16c6e0ffaf

View file

@ -50,7 +50,7 @@ public:
T read_core(F && f) {
deserializer & d = get_owner();
char c = d.read_char();
if (c > 0) {
if (c != 0) {
T r = f(c-1);
m_table.push_back(r);
return r;