Skip to content

Commit 3f9ca97

Browse files
authored
change parameter to signed int
As of wrong paramater, the following problem existed, that will be fixed now with this change. BTScanResultsSet.cpp:67:8: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] if (i < 0)
1 parent caef400 commit 3f9ca97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/BluetoothSerial/src/BTScan.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ class BTScanResults {
2424

2525
virtual void dump(Print *print = nullptr);
2626
virtual int getCount();
27-
virtual BTAdvertisedDevice* getDevice(uint32_t i);
27+
virtual BTAdvertisedDevice* getDevice(int i);
2828
};
2929

3030
class BTScanResultsSet : public BTScanResults {
3131
public:
3232
void dump(Print *print = nullptr);
3333
int getCount();
34-
BTAdvertisedDevice* getDevice(uint32_t i);
34+
BTAdvertisedDevice* getDevice(int i);
3535

3636
bool add(BTAdvertisedDeviceSet advertisedDevice, bool unique = true);
3737
void clear();
3838

3939
std::map<std::string, BTAdvertisedDeviceSet> m_vectorAdvertisedDevices;
4040
};
4141

42-
#endif
42+
#endif

0 commit comments

Comments
 (0)