diff --git a/storage/connect/array.cpp b/storage/connect/array.cpp index fb8dbfd7869..9c679456b68 100644 --- a/storage/connect/array.cpp +++ b/storage/connect/array.cpp @@ -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 diff --git a/storage/connect/filamap.cpp b/storage/connect/filamap.cpp index c0ca40f4c01..d79296a8497 100644 --- a/storage/connect/filamap.cpp +++ b/storage/connect/filamap.cpp @@ -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