From af7a0895ac6f57db0d4c83bede1a6115e9e11c1f Mon Sep 17 00:00:00 2001 From: Olivier Bertrand Date: Fri, 25 Jun 2021 12:30:10 +0200 Subject: Fix clang compile error in tabjson.cpp and tabbson.cpp --- storage/connect/tabbson.cpp | 2 +- storage/connect/tabjson.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/connect/tabbson.cpp b/storage/connect/tabbson.cpp index dd37357ac6a..05c47014e5c 100644 --- a/storage/connect/tabbson.cpp +++ b/storage/connect/tabbson.cpp @@ -676,7 +676,7 @@ PBVAL BTUTIL::MakeTopTree(PGLOBAL g, int type) if (!Tp->Row) { // Parse and allocate Objpath item(s) char *p, *objpath = PlugDup(g, Tp->Objname); - char *sep = (Tp->Sep == ':') ? ":[" : ".["; + char *sep = (char*)(Tp->Sep == ':' ? ":[" : ".["); int i; bool bp = false, b = false; PBVAL objp = NULL; diff --git a/storage/connect/tabjson.cpp b/storage/connect/tabjson.cpp index 09077ecdf93..de85344f869 100644 --- a/storage/connect/tabjson.cpp +++ b/storage/connect/tabjson.cpp @@ -1179,7 +1179,7 @@ int TDBJSN::MakeTopTree(PGLOBAL g, PJSON jsp) if (!Val) { // Parse and allocate Objname item(s) char *p, *objpath = PlugDup(g, Objname); - char *sep = (Sep == ':') ? ":[" : ".["; + char *sep = (char*)(Sep == ':' ? ":[" : ".["); int i; bool bp = false, b = false; PJOB objp; -- cgit v1.2.1