nythrix's picture

[Generator] Bad pointer type overriding.

Project:The Open Toolkit library
Version:1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:confirmed
Description

Overriding a pointer type with another pointer type through overrides.xml, causes the two levels of indirection to be added up.

Existing type: IntPtr**
Required type: IntPtr*
Resulting type: IntPtr***

Can be reproduced from the info in #1368: [OpenCL] Several delegates buggy.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

Status:open» confirmed

I have found the cause (Type.cs:136, changing CurrentType does not reset the Pointer property). Unfortunately, the generator relies on this faulty behavior so this will be tricky to solve.