* main.c (dis_genericparam): oops, fix off-by-one error.
authorJackson Harper <jackson@novell.com>
Wed, 8 Oct 2003 17:46:33 +0000 (17:46 -0000)
committerJackson Harper <jackson@novell.com>
Wed, 8 Oct 2003 17:46:33 +0000 (17:46 -0000)
svn path=/trunk/mono/; revision=18758

mono/dis/ChangeLog
mono/dis/main.c

index 438771ebdf5dc26455921cb5b8d45d7cae58a403..cc0e96ddc189c821aeaed0be998eb86d305e81aa 100644 (file)
@@ -1,6 +1,8 @@
 2003-10-08 Jackson Harper <jackson@ximian.com>
 
-       * main.c: NULL cnst_block so we dont explode on interfaces.
+       * main.c (dis_type): NULL cnst_block so we dont explode on
+       interfaces.
+       * main.c (dis_genericparam): oops, fix off-by-one error.
        
 2003-10-08 Jackson Harper <jackson@ximian.com>
 
index 7a71c9faa658abe7e1ddcc938a94229dfaee6af2..0469e68cc39ef076c82ec5c2d693d15147a8099f 100644 (file)
@@ -788,7 +788,7 @@ dis_genericparam (MonoImage *m, guint32 typedef_row)
                 else
                         fprintf (output, ", %s", mono_metadata_string_heap (m, cols [MONO_GENERICPARAM_NAME]));
 
-                for (cnst_ind = cnst_start; cnst_ind <= ct->rows; cnst_ind++) {
+                for (cnst_ind = cnst_start; cnst_ind < ct->rows; cnst_ind++) {
                         char *sig;
                         mono_metadata_decode_row (ct, cnst_ind, ccols, MONO_GENPARCONSTRAINT_SIZE);
                         if (ccols [MONO_GENPARCONSTRAINT_GENERICPAR] != i)