Commit b3cecb7b authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

Revert "Fix of warnings on aarch64 like:"

Fixed by the author in other way (char -> short)

This reverts commit 496f7090.
parent 7f7e6614
......@@ -769,7 +769,7 @@ bool BDOC::SerializeValue(PBVAL jvp, bool b)
case TYPE_DBL:
sprintf(buf, "%.*lf", jvp->Nd, *(double*)MakePtr(Base, jvp->To_Val));
return jp->WriteStr(buf);
case (char)TYPE_NULL:
case TYPE_NULL:
return jp->WriteStr("null");
case TYPE_JVAL:
return SerializeValue(MVP(jvp->To_Val));
......@@ -1554,7 +1554,7 @@ PSZ BJSON::GetString(PBVAL vp, char* buff)
case TYPE_BOOL:
p = (PSZ)((vlp->B) ? "true" : "false");
break;
case (char)TYPE_NULL:
case TYPE_NULL:
p = (PSZ)"null";
break;
default:
......@@ -1771,7 +1771,7 @@ bool BJSON::IsValueNull(PBVAL vlp)
bool b;
switch (vlp->Type) {
case (char)TYPE_NULL:
case TYPE_NULL:
b = true;
break;
case TYPE_JOB:
......
......@@ -526,7 +526,7 @@ void BJNX::SetJsonValue(PGLOBAL g, PVAL vp, PBVAL vlp)
case TYPE_JOB:
vp->SetValue_psz(GetObjectText(g, vlp, NULL));
break;
case (char)TYPE_NULL:
case TYPE_NULL:
vp->SetNull(true);
default:
vp->Reset();
......@@ -1444,7 +1444,7 @@ my_bool BJNX::CompareValues(PGLOBAL g, PBVAL v1, PBVAL v2)
b = (v1->B == v2->B);
break;
case (char)TYPE_NULL:
case TYPE_NULL:
b = (v2->Type == TYPE_NULL);
break;
default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment