OSDN Git Service

* gloss.cxx (gloss32::read): Fix argument type mismatch for min.
authorrth <rth>
Sun, 12 Aug 2001 19:32:17 +0000 (19:32 +0000)
committerrth <rth>
Sun, 12 Aug 2001 19:32:17 +0000 (19:32 +0000)
sid/component/gloss/ChangeLog
sid/component/gloss/gloss.cxx

index 5673c7e..455e4c4 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-12  Richard Henderson  <rth@redhat.com>
+
+       * gloss.cxx (gloss32::read): Fix argument type mismatch for min.
+
 2001-08-03  matthew green  <mrg@redhat.com>
        
        * gloss.cxx (~gloss32): Add throw() specifier.
index 769cad9..0309179 100644 (file)
@@ -1029,7 +1029,7 @@ gloss32::read (int fd, address32 addr, size32 len,
 
          if (rx_buffer.size() > 0)
            {
-             count_read = std::min (len, rx_buffer.size());
+             count_read = std::min (size_t(len), rx_buffer.size());
              for (int i = 0; i < count_read; ++i)
                {
                  c = rx_buffer.front();