fix: persist node_count and tag_count to signed number

This commit is contained in:
eeff
2023-07-21 16:47:53 +08:00
parent 398608ed7a
commit 97dc620d0e
+2 -2
View File
@@ -54,8 +54,8 @@ static const char *plugin_file = "persistence/plugins.json";
static const char *db_file = "persistence/sqlite.db";
static sqlite3 * global_db = NULL;
pthread_rwlock_t global_rwlock = PTHREAD_RWLOCK_INITIALIZER;
static size_t global_node_count = 0;
static size_t global_tag_count = 0;
static int global_node_count = 0;
static int global_tag_count = 0;
static inline bool ends_with(const char *str, const char *suffix)
{