From e55d7662de7d1bb970d1de9957632154aeed8756 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Tue, 15 Mar 2022 06:10:51 +0000 Subject: [PATCH] more TDB --- source/libs/tdb/src/inc/tdbUtil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/tdb/src/inc/tdbUtil.h b/source/libs/tdb/src/inc/tdbUtil.h index 9e23ca9419..4dd917e0d1 100644 --- a/source/libs/tdb/src/inc/tdbUtil.h +++ b/source/libs/tdb/src/inc/tdbUtil.h @@ -43,7 +43,7 @@ static inline int tdbPutVarInt(u8 *p, int v) { int n = 0; for (;;) { - if (v < 0xff) { + if (v <= 0x7f) { p[n++] = v; break; }