diff --git a/libs/indidevice/property/indipropertybasic.cpp b/libs/indidevice/property/indipropertybasic.cpp index a7e8f484ed..c47a577cfc 100644 --- a/libs/indidevice/property/indipropertybasic.cpp +++ b/libs/indidevice/property/indipropertybasic.cpp @@ -393,7 +393,7 @@ const WidgetView *PropertyBasic::at(size_t index) const } template -WidgetView &PropertyBasic::operator[](ssize_t index) const +WidgetView &PropertyBasic::operator[](int index) const { D_PTR(const PropertyBasic); assert(index >= 0); diff --git a/libs/indidevice/property/indipropertybasic.h b/libs/indidevice/property/indipropertybasic.h index a22bbe4621..055d5e061b 100644 --- a/libs/indidevice/property/indipropertybasic.h +++ b/libs/indidevice/property/indipropertybasic.h @@ -128,7 +128,7 @@ class PropertyBasic : public INDI::Property const WidgetView *at(size_t index) const; - WidgetView &operator[](ssize_t index) const; + WidgetView &operator[](int index) const; public: // STL-style iterators WidgetView *begin();