dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/ildasm ildasm_data.c,1.1,1.2


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/ildasm ildasm_data.c,1.1,1.2
Date: Thu, 30 Jan 2003 19:36:15 -0500

Update of /cvsroot/dotgnu-pnet/pnet/ildasm
In directory subversions:/tmp/cvs-serv21792/ildasm

Modified Files:
        ildasm_data.c 
Log Message:


Deal with a signed vs unsigned lockup bug.


Index: ildasm_data.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ildasm/ildasm_data.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ildasm_data.c       30 Jan 2003 10:57:46 -0000      1.1
--- ildasm_data.c       31 Jan 2003 00:36:13 -0000      1.2
***************
*** 120,132 ****
  
        /* Sort the RVA list into ascending order */
!       for(posn = 0; posn < (numFieldRVAs - 1); ++posn)
        {
!               for(posn2 = posn + 1; posn2 < numFieldRVAs; ++posn2)
                {
!                       if(fieldRVAs[posn] > fieldRVAs[posn2])
                        {
!                               temp = fieldRVAs[posn];
!                               fieldRVAs[posn] = fieldRVAs[posn2];
!                               fieldRVAs[posn2] = temp;
                        }
                }
--- 120,135 ----
  
        /* Sort the RVA list into ascending order */
!       if(numFieldRVAs > 1)
        {
!               for(posn = 0; posn < (numFieldRVAs - 1); ++posn)
                {
!                       for(posn2 = posn + 1; posn2 < numFieldRVAs; ++posn2)
                        {
!                               if(fieldRVAs[posn] > fieldRVAs[posn2])
!                               {
!                                       temp = fieldRVAs[posn];
!                                       fieldRVAs[posn] = fieldRVAs[posn2];
!                                       fieldRVAs[posn2] = temp;
!                               }
                        }
                }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]