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