backward/forward binary compatibility checker

Parker Coates parker.coates at gmail.com
Thu Jul 30 22:24:30 BST 2009


On Thu, Jul 30, 2009 at 17:14, Matthew Woehlke wrote:
> Thiago Macieira wrote:
>>
>> Matthew Woehlke wrote:
>>>
>>> Am I missing a way to pack the three members of that struct (one of
>>> which is 1024 bytes by itself) into 1024 bytes?
>>
>> I think you're misreading.
>>
>> sizeof(uint) = 4  =>  sizeof(uint[256]) = 1024
>>
>> sizeof(uchar) = 1 => sizeof(uchar[256]) = 256
>
> D'oh, you are right :-). I thought I was probably missing something.

Don't worry. You weren't the only one to wrinkle their brow at that.
You were just the only one brave/foolish enough to challenge Thiago.
:)

Parker




More information about the kde-core-devel mailing list