1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

- Fix all compiler issues on FreeBSD clang.

modified:
  storage/connect/array.cpp
  storage/connect/filamap.cpp
This commit is contained in:
Olivier Bertrand
2014-09-30 00:53:00 +02:00
parent 4b2b2abe8b
commit e4ff01e47d
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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)
/***********************************************************************/ /***********************************************************************/
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