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

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

[Dotgnu-pnet-commits] CVS: pnet/engine cvm_ptr.c,1.33,1.34


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/engine cvm_ptr.c,1.33,1.34
Date: Wed, 05 Feb 2003 22:56:27 -0500

Update of /cvsroot/dotgnu-pnet/pnet/engine
In directory subversions:/tmp/cvs-serv4393/engine

Modified Files:
        cvm_ptr.c 
Log Message:


Bug fix - "get2d" was not multiplying the element position by the element
size to get the array offset.


Index: cvm_ptr.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/cvm_ptr.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -r1.33 -r1.34
*** cvm_ptr.c   27 Dec 2002 12:25:09 -0000      1.33
--- cvm_ptr.c   6 Feb 2003 03:56:25 -0000       1.34
***************
*** 3236,3241 ****
                        stacktop[-3].ptrValue = (void *)
                                (((unsigned char *)(array->data)) +
!                                index1 * array->bounds[0].multiplier +
!                                index2 * array->bounds[1].multiplier);
                        MODIFY_PC_AND_STACK(CVMP_LEN_NONE, -2);
                }
--- 3236,3241 ----
                        stacktop[-3].ptrValue = (void *)
                                (((unsigned char *)(array->data)) +
!                                (index1 * array->bounds[0].multiplier +
!                                 index2 * array->bounds[1].multiplier) * 
array->elemSize);
                        MODIFY_PC_AND_STACK(CVMP_LEN_NONE, -2);
                }





reply via email to

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