Skip to content

Commit 9a83fd4

Browse files
committed
List: Returns long instead of size_t in indexOf()
1 parent d97721f commit 9a83fd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/scratch/list.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void List::setName(const std::string &name)
2525
}
2626

2727
/*! Returns the index of the given item. */
28-
size_t List::indexOf(const Value &value) const
28+
long List::indexOf(const Value &value) const
2929
{
3030
auto it = std::find(begin(), end(), value);
3131

src/scratch/list.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class LIBSCRATCHCPP_EXPORT List
2222
std::string name();
2323
void setName(const std::string &name);
2424

25-
size_t indexOf(const Value &value) const;
25+
long indexOf(const Value &value) const;
2626
bool contains(const Value &value) const;
2727

2828
/*! Removes the item at index. */

0 commit comments

Comments
 (0)