From 4451d6b504e39531fe7e9868dd6169888f3b1399 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=98=82?= Date: Sun, 5 Feb 2023 09:42:15 +0000 Subject: [PATCH] fix compile err on msvc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李昂 --- src/dataArg.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dataArg.h b/src/dataArg.h index 69866ad42..8b79d4aff 100644 --- a/src/dataArg.h +++ b/src/dataArg.h @@ -120,19 +120,19 @@ Arg* arg_setNull(Arg* self); Arg* arg_setBytes(Arg* self, char* name, uint8_t* src, size_t size); static inline Arg* arg_newInt(int64_t val) { - return arg_setInt(NULL, "", (val)); + return arg_setInt(NULL, (char*)"", (val)); } static inline Arg* arg_newFloat(pika_float val) { - return arg_setFloat(NULL, "", (val)); + return arg_setFloat(NULL, (char*)"", (val)); } static inline Arg* arg_newPtr(ArgType type, void* pointer) { - return arg_setPtr(NULL, "", (type), (pointer)); + return arg_setPtr(NULL, (char*)"", (type), (pointer)); } static inline Arg* arg_newStr(char* string) { - return arg_setStr(NULL, "", (string)); + return arg_setStr(NULL, (char*)"", (string)); } static inline Arg* arg_newNull() { @@ -140,7 +140,7 @@ static inline Arg* arg_newNull() { } static inline Arg* arg_newBytes(uint8_t* src, size_t size) { - return arg_setBytes(NULL, "", (src), (size)); + return arg_setBytes(NULL, (char*)"", (src), (size)); } int64_t arg_getInt(Arg* self);