aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkacper776 <kacper1342@gmail.com>2022-11-06 22:31:18 +0100
committerkacper776 <54678026+kacper776@users.noreply.github.com>2022-11-06 22:53:57 +0100
commit7b3c37e8f60066fad6b8a3527d88bbdd8d8b35fb (patch)
treebb6afe279502b2dc1157396ad3816599608c8663
parent3daf250b13aa8bd19f879636e15c17d09eaa557e (diff)
remove random "+4" from String Tpe length
-rw-r--r--komfydb/common/type.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/komfydb/common/type.cc b/komfydb/common/type.cc
index bc8ec32..492a70b 100644
--- a/komfydb/common/type.cc
+++ b/komfydb/common/type.cc
@@ -10,8 +10,7 @@ int Type::GetLen() {
if (value == Value::INT) {
return INT_LEN;
} else {
- // TODO check why this +4 is necessary?
- return STR_LEN + 4;
+ return STR_LEN;
}
}