Warning fix when T is a short int

This commit is contained in:
King_DuckZ 2014-03-21 19:44:16 +01:00
parent 46ad5ea5fe
commit 2b9746b868

View file

@ -37,6 +37,8 @@ namespace cloonel {
}
}
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
///-------------------------------------------------------------------------
///-------------------------------------------------------------------------
template <typename T, uint32_t S>
@ -71,7 +73,10 @@ namespace cloonel {
}
return *this;
}
#pragma GCC diagnostic pop
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
///-------------------------------------------------------------------------
///-------------------------------------------------------------------------
template <typename T, uint32_t S>
@ -106,6 +111,7 @@ namespace cloonel {
}
return *this;
}
#pragma GCC diagnostic pop
///-------------------------------------------------------------------------
///-------------------------------------------------------------------------