Skip to content

Commit

Permalink
Possible fix for Windows VS 2022 compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Nov 30, 2023
1 parent 4729c8b commit 88cb5d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/indidevice/property/indipropertybasic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ const WidgetView<T> *PropertyBasic<T>::at(size_t index) const
}

template <typename T>
WidgetView<T> &PropertyBasic<T>::operator[](ssize_t index) const
WidgetView<T> &PropertyBasic<T>::operator[](int index) const
{
D_PTR(const PropertyBasic);
assert(index >= 0);
Expand Down
2 changes: 1 addition & 1 deletion libs/indidevice/property/indipropertybasic.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class PropertyBasic : public INDI::Property

const WidgetView<T> *at(size_t index) const;

WidgetView<T> &operator[](ssize_t index) const;
WidgetView<T> &operator[](int index) const;

public: // STL-style iterators
WidgetView<T> *begin();
Expand Down

0 comments on commit 88cb5d0

Please sign in to comment.