]> git.sesse.net Git - bmusb/commitdiff
Fix int -> unsigned.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 27 Jul 2016 19:15:25 +0000 (21:15 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 27 Jul 2016 19:15:25 +0000 (21:15 +0200)
bmusb.cpp
bmusb/bmusb.h

index fd323a66ffc42bc8a025ba4e6353f7e7a6c37acd..7c2108203f7904d76bdb9de9a49c8c1f3964ae3f 100644 (file)
--- a/bmusb.cpp
+++ b/bmusb.cpp
@@ -1011,10 +1011,10 @@ libusb_device_handle *open_card(unsigned card_index, libusb_device *dev, string
 
 }  // namespace
 
-int BMUSBCapture::num_cards()
+unsigned BMUSBCapture::num_cards()
 {
        vector<USBCardDevice> found_cards = find_all_cards();
-       int ret = found_cards.size();
+       unsigned ret = found_cards.size();
        for (size_t i = 0; i < found_cards.size(); ++i) {
                libusb_unref_device(found_cards[i].device);
        }
index 22a6655b21da12792d9a4069bf415b7bfdb521ec..f4af6aa14b2a1399168d3f75673b1d2215846770 100644 (file)
@@ -177,7 +177,7 @@ class BMUSBCapture : public CaptureInterface {
 
        // Note: Cards could be unplugged and replugged between this call and
        // actually opening the card (in configure_card()).
-       static int num_cards();
+       static unsigned num_cards();
 
        std::map<uint32_t, VideoMode> get_available_video_modes() const override;
        uint32_t get_current_video_mode() const override;