Commit 6be0ddae authored by Monty's avatar Monty

Fixed compiler warnings in CONNECT

parent 07abcb50
......@@ -1051,7 +1051,7 @@ int JOBJECT::GetSize(bool b) {
for (PJPR jpp = First; jpp; jpp = jpp->Next)
// If b return only non null pairs
if (!b || jpp->Val && !jpp->Val->IsNull())
if (!b || (jpp->Val && !jpp->Val->IsNull()))
n++;
return n;
......@@ -1581,10 +1581,12 @@ PVAL JVALUE::GetValue(PGLOBAL g)
PVAL valp = NULL;
if (DataType != TYPE_JSON)
{
if (DataType == TYPE_STRG)
valp = AllocateValue(g, Strp, DataType, Nd);
else
valp = AllocateValue(g, &LLn, DataType, Nd);
}
return valp;
} // end of GetValue
......@@ -1755,6 +1757,7 @@ void JVALUE::SetValue(PGLOBAL g, PVAL valp)
case TYPE_TINY:
B = valp->GetTinyValue() != 0;
DataType = TYPE_BOOL;
break;
case TYPE_INT:
N = valp->GetIntValue();
DataType = TYPE_INTG;
......
......@@ -6,9 +6,7 @@
#pragma once
#if defined(_WIN32)
static PCSZ slash = "\\";
#else // !_WIN32
static PCSZ slash = "/";
#define stricmp strcasecmp
#endif // !_WIN32
......
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