|
From: | Baptiste HEYMAN |
Subject: | [bug #17069] iVars offsets are not correctly set in GSObjCMakeClass. |
Date: | Sun, 9 Jul 2006 10:06:40 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.8.0.1) Gecko/20060409 Firefox/1.5.0.1 |
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=17069> Summary: iVars offsets are not correctly set in GSObjCMakeClass. Project: GNUstep Submitted by: baptisteheyman Submitted on: dimanche 09.07.2006 à 10:06 Category: Base/Foundation Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open _______________________________________________________ Details: shouldn't // align the ivar (i.e. put it on the first aligned address iVarSize = objc_aligned_size(ivar->ivar_type); ivar->ivar_offset = iVarSize; iVarSize += objc_sizeof_type(ivar->ivar_type); // add the ivar size ivar = ivar + 1; be ivar->ivar_offset = iVarSize; iVarSize += objc_aligned_size(ivar->ivar_type); // add the ivar aligned size ivar = ivar + 1; ? _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=17069> _______________________________________________ Message posté via/par Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |