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:
@@ -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)
|
|||||||
/***********************************************************************/
|
/***********************************************************************/
|
||||||
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
|
||||||
|
Reference in New Issue
Block a user