mirror of
https://github.com/unittest-cpp/unittest-cpp
synced 2026-09-26 16:19:30 +03:00
removed warning "size_t to int conversion possible loss of data"
This commit is contained in:
parent
94295a0a7d
commit
4247f7889a
1 changed files with 4 additions and 4 deletions
|
|
@ -253,7 +253,7 @@ namespace {
|
|||
class ThrowingObject
|
||||
{
|
||||
public:
|
||||
float operator[](int) const
|
||||
float operator[](size_t) const
|
||||
{
|
||||
throw "Test throw";
|
||||
}
|
||||
|
|
@ -262,7 +262,7 @@ namespace {
|
|||
class StdThrowingObject
|
||||
{
|
||||
public:
|
||||
float operator[](int) const
|
||||
float operator[](size_t) const
|
||||
{
|
||||
throw std::runtime_error("Test throw");
|
||||
}
|
||||
|
|
@ -451,7 +451,7 @@ namespace {
|
|||
class ThrowingObject2D
|
||||
{
|
||||
public:
|
||||
float* operator[](int) const
|
||||
float* operator[](size_t) const
|
||||
{
|
||||
throw "Test throw";
|
||||
}
|
||||
|
|
@ -460,7 +460,7 @@ namespace {
|
|||
class StdThrowingObject2D
|
||||
{
|
||||
public:
|
||||
float* operator[](int) const
|
||||
float* operator[](size_t) const
|
||||
{
|
||||
throw std::runtime_error("Test throw");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue