This is the mail archive of the sid@sources.redhat.com mailing list for the SID project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

64-bit buglet


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();


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]