[Mono-bugs] [Bug 631282] New: Change the pointer value like "pointer2 += 10; " for structure.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Aug 14 12:02:36 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=631282
http://bugzilla.novell.com/show_bug.cgi?id=631282#c0
Summary: Change the pointer value like "pointer2 += 10;" for
structure.
Classification: Mono
Product: Mono: Compilers
Version: 2.6.x
Platform: x86
URL: http://www.neoaxisgroup.com
OS/Version: Mac OS X 10.6
Status: NEW
Severity: Major
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: IvanEfimov at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: Development
Blocker: ---
Created an attachment (id=383009)
--> (http://bugzilla.novell.com/attachment.cgi?id=383009)
Example code.
Hello,
We got the bug with pointers on latest Mono compiler on MacOSX.
I will show simple example:
----
struct MyStructure
{
int q;
int z;
int a;
}
MyStructure* pointer2 = ...;
pointer2 += 10;
----
On the Mac this works like: pointer2++;
This increase only 12 bytes (size of structure). Need 120 bytes.
if make "pointer2 += 20", then increased 12 bytes too.
See attached file for compilable source.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list