Commit e4ff01e4 authored by Olivier Bertrand's avatar Olivier Bertrand

- Fix all compiler issues on FreeBSD clang.

modified:
  storage/connect/array.cpp
  storage/connect/filamap.cpp
parent 4b2b2abe
......@@ -129,7 +129,7 @@ PARRAY MakeValueArray(PGLOBAL g, PPARM pp)
break;
case TYPE_VOID:
// Integer stored inside pp->Value
par->AddValue(g, (int)parmp->Value);
par->AddValue(g, (int)(uintptr_t)parmp->Value);
break;
} // endswitch valtyp
......
......@@ -290,8 +290,8 @@ bool MAPFAM::RecordPos(PGLOBAL g)
/***********************************************************************/
int MAPFAM::InitDelete(PGLOBAL g, int fpos, int spos)
{
Fpos = Memory + fpos;
Mempos = Memory + spos;
Fpos = Memory + (uintptr_t)fpos;
Mempos = Memory + (uintptr_t)spos;
return RC_OK;
} // end of InitDelete
......@@ -685,7 +685,7 @@ bool MPXFAM::SetPos(PGLOBAL g, int pos)
/***********************************************************************/
int MPXFAM::InitDelete(PGLOBAL g, int fpos, int spos)
{
Fpos = Memory + Headlen + fpos * Lrecl;
Fpos = Memory + Headlen + (uintptr_t)fpos * Lrecl;
Mempos = Fpos + Lrecl;
return RC_OK;
} // end of InitDelete
......
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