Warning fix when T is a short int
This commit is contained in:
parent
46ad5ea5fe
commit
2b9746b868
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
///-------------------------------------------------------------------------
|
||||
///-------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue