mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Fixed bug in generators
This commit is contained in:
parent
619d53439d
commit
e9305ecd65
@ -30,7 +30,7 @@ public:
|
|||||||
BetweenGenerator( T from, T to ) : m_from( from ), m_to( to ){}
|
BetweenGenerator( T from, T to ) : m_from( from ), m_to( to ){}
|
||||||
|
|
||||||
virtual T getValue( std::size_t index ) const {
|
virtual T getValue( std::size_t index ) const {
|
||||||
return m_from+static_cast<T>( index );
|
return m_from+static_cast<int>( index );
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual std::size_t size() const {
|
virtual std::size_t size() const {
|
||||||
|
Loading…
Reference in New Issue
Block a user