* 64-bit buglet
@ 2001-08-12 11:10 Richard Henderson
2001-08-12 15:39 ` Ben Elliston
0 siblings, 1 reply; 2+ messages in thread
From: Richard Henderson @ 2001-08-12 11:10 UTC (permalink / raw)
To: sid
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();
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 64-bit buglet
2001-08-12 11:10 64-bit buglet Richard Henderson
@ 2001-08-12 15:39 ` Ben Elliston
0 siblings, 0 replies; 2+ messages in thread
From: Ben Elliston @ 2001-08-12 15:39 UTC (permalink / raw)
To: Richard Henderson; +Cc: sid
>>>>> "Richard" == Richard Henderson <rth@redhat.com> writes:
Richard> I need the following to build sid on an Alpha. This issue
Richard> is that the two arguments to std::min must be the same type,
Richard> otherwise the template does not match.
It would probably be better to use static_cast<size_t> (len) instead
for consistency with the rest of the source tree. Otherwise, commit
away.
Ben
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-12 15:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-12 11:10 64-bit buglet Richard Henderson
2001-08-12 15:39 ` Ben Elliston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).