Skip to content

Commit 6239e2a

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

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
@@ -608,7 +608,7 @@ void BSONDISC::AddColumn(PGLOBAL g)
608608
PBVAL BTUTIL::FindRow(PGLOBAL g)
609609
{
610610
char *p, *objpath = PlugDup(g, Tp->Objname);
611-
char *sep = (Tp->Sep == ':') ? ":[" : ".[";
611+
char *sep = (char*)(Tp->Sep == ':' ? ":[" : ".[");
612612
bool bp = false, b = false;
613613
PBVAL jsp = Tp->Row;
614614
PBVAL val = NULL;

storage/connect/tabjson.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ int TDBJSN::EstimatedLength(void)
962962
PJSON TDBJSN::FindRow(PGLOBAL g)
963963
{
964964
char *p, *objpath = PlugDup(g, Objname);
965-
char *sep = (Sep == ':') ? ":[" : ".[";
965+
char *sep = (char*)(Sep == ':' ? ":[" : ".[");
966966
bool bp = false, b = false;
967967
PJSON jsp = Row;
968968
PJVAL val = NULL;

0 commit comments

Comments
 (0)