1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fix clang compile error in tabjson.cpp and tabbson.cpp

This commit is contained in:
Olivier Bertrand
2021-06-25 12:30:10 +02:00
parent 6239e2a4ec
commit af7a0895ac
2 changed files with 2 additions and 2 deletions

View File

@@ -676,7 +676,7 @@ PBVAL BTUTIL::MakeTopTree(PGLOBAL g, int type)
if (!Tp->Row) { if (!Tp->Row) {
// Parse and allocate Objpath item(s) // Parse and allocate Objpath item(s)
char *p, *objpath = PlugDup(g, Tp->Objname); char *p, *objpath = PlugDup(g, Tp->Objname);
char *sep = (Tp->Sep == ':') ? ":[" : ".["; char *sep = (char*)(Tp->Sep == ':' ? ":[" : ".[");
int i; int i;
bool bp = false, b = false; bool bp = false, b = false;
PBVAL objp = NULL; PBVAL objp = NULL;

View File

@@ -1179,7 +1179,7 @@ int TDBJSN::MakeTopTree(PGLOBAL g, PJSON jsp)
if (!Val) { if (!Val) {
// Parse and allocate Objname item(s) // Parse and allocate Objname item(s)
char *p, *objpath = PlugDup(g, Objname); char *p, *objpath = PlugDup(g, Objname);
char *sep = (Sep == ':') ? ":[" : ".["; char *sep = (char*)(Sep == ':' ? ":[" : ".[");
int i; int i;
bool bp = false, b = false; bool bp = false, b = false;
PJOB objp; PJOB objp;