Suspicous code in kdelibs-3.5.2
Kuba Ober
kuba at mareimbrium.org
Wed Apr 5 20:01:01 BST 2006
> I guess you mean bm[29][0], because bm[29] = 1 gives an compiler
> error:
>
> No. The 15th element in the second row would be bm[0][29]
> For an array[16][16] the position bm[i][j] is equal to *(bm +
> i*16+j)
> Here code that shows the fact:
That code shows that this is what the implementation does. It does not show
(it cannot!) that this is what the C++ standard mandates. So it's a fact for
the particular implementation, and that's the extent of what you've shown.
Otherwise, AFAIK you were wrong :)
Cheers, Kuba
More information about the kde-core-devel
mailing list