[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Suspicous code in kdelibs-3.5.2
From:       Kuba Ober <kuba () mareimbrium ! org>
Date:       2006-04-05 19:01:01
Message-ID: 200604051501.01940.kuba () mareimbrium ! org
[Download RAW message or body]

> 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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic