This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
64-bit buglet
- To: sid at sources dot redhat dot com
- Subject: 64-bit buglet
- From: Richard Henderson <rth at redhat dot com>
- Date: Sun, 12 Aug 2001 11:10:29 -0700
I need the following to build sid on an Alpha. This issue
is that the two arguments to std::min must be the same type,
otherwise the template does not match.
Ok?
r~
Index: sid/component/gloss/gloss.cxx
===================================================================
RCS file: /cvs/cvsfiles/devo/sid/component/gloss/gloss.cxx,v
retrieving revision 1.32
diff -c -p -d -r1.32 gloss.cxx
*** gloss.cxx 2001/08/03 06:01:00 1.32
--- gloss.cxx 2001/08/12 18:02:20
*************** gloss32::read (int fd, address32 addr, s
*** 1029,1035 ****
if (rx_buffer.size() > 0)
{
! count_read = std::min (len, rx_buffer.size());
for (int i = 0; i < count_read; ++i)
{
c = rx_buffer.front();
--- 1029,1035 ----
if (rx_buffer.size() > 0)
{
! count_read = std::min (size_t(len), rx_buffer.size());
for (int i = 0; i < count_read; ++i)
{
c = rx_buffer.front();