Skip to content

Commit af7a089

Browse files
committed
Fix clang compile error in tabjson.cpp and tabbson.cpp
1 parent 6239e2a commit af7a089

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

storage/connect/tabbson.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ PBVAL BTUTIL::MakeTopTree(PGLOBAL g, int type)
676676
if (!Tp->Row) {
677677
// Parse and allocate Objpath item(s)
678678
char *p, *objpath = PlugDup(g, Tp->Objname);
679-
char *sep = (Tp->Sep == ':') ? ":[" : ".[";
679+
char *sep = (char*)(Tp->Sep == ':' ? ":[" : ".[");
680680
int i;
681681
bool bp = false, b = false;
682682
PBVAL objp = NULL;

storage/connect/tabjson.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ int TDBJSN::MakeTopTree(PGLOBAL g, PJSON jsp)
11791179
if (!Val) {
11801180
// Parse and allocate Objname item(s)
11811181
char *p, *objpath = PlugDup(g, Objname);
1182-
char *sep = (Sep == ':') ? ":[" : ".[";
1182+
char *sep = (char*)(Sep == ':' ? ":[" : ".[");
11831183
int i;
11841184
bool bp = false, b = false;
11851185
PJOB objp;

0 commit comments

Comments
 (0)