mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
refs #92 fixing warnings when compiling for 64bits due to conversions between size_t and int
This commit is contained in:
@@ -81,7 +81,7 @@ namespace BlackMisc
|
||||
/*
|
||||
* Element (return by reference)
|
||||
*/
|
||||
template <class ImplVector> double &CVector3DBase<ImplVector>::getElement(size_t row)
|
||||
template <class ImplVector> double &CVector3DBase<ImplVector>::getElement(int row)
|
||||
{
|
||||
switch (row)
|
||||
{
|
||||
@@ -100,7 +100,7 @@ namespace BlackMisc
|
||||
/*
|
||||
* Element
|
||||
*/
|
||||
template <class ImplVector> double CVector3DBase<ImplVector>::getElement(size_t row) const
|
||||
template <class ImplVector> double CVector3DBase<ImplVector>::getElement(int row) const
|
||||
{
|
||||
return const_cast<CVector3DBase<ImplVector>*>(this)->getElement(row);
|
||||
}
|
||||
@@ -108,7 +108,7 @@ namespace BlackMisc
|
||||
/*
|
||||
* Set given element
|
||||
*/
|
||||
template <class ImplVector> void CVector3DBase<ImplVector>::setElement(size_t row, double value)
|
||||
template <class ImplVector> void CVector3DBase<ImplVector>::setElement(int row, double value)
|
||||
{
|
||||
switch (row)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user