From 6961e44b7e4c1eed2d73a1b03056ea0eb2e527bf Mon Sep 17 00:00:00 2001 From: Forairaaaaa Date: Tue, 7 Nov 2023 10:47:40 +0800 Subject: [PATCH] fix simplkv clang error --- example/framework/simplekv_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/framework/simplekv_test.cpp b/example/framework/simplekv_test.cpp index a0dd5c9..61b8c59 100644 --- a/example/framework/simplekv_test.cpp +++ b/example/framework/simplekv_test.cpp @@ -62,20 +62,20 @@ int main() /* -------------------------------------------------------------- */ printf("\n[Array]\n"); - uint16_t data[10] = {0, 3, 6, 9, 12, 15, 18, 21, 24, 27}; + int data[10] = {0, 3, 6, 9, 12, 15, 18, 21, 24, 27}; db.Add("Data", data); for (int i = 0; i < 10; i++) { - printf("%d ", db.Get("Data")->value()[i]); + printf("%d ", db.Get("Data")->value()[i]); } printf("\n"); // > 0 3 6 9 12 15 18 21 24 27 for (int i = 0; i < 10; i++) { - if (db.Get("Data")->value()[i] != data[i]) + if (db.Get("Data")->value()[i] != data[i]) return -1; } /* -------------------------------------------------------------- */