Skip to content

Bug C backend: Convert Cptr to c_p_pointer #1890

Closed
@ronnuriel

Description

@ronnuriel

Bug when converting Cptr to c_p_pointer (to work as array):

a: Pointer[u16[32768]] = c_p_pointer(vresult_l4, u16[32768])

code generation error: Type number '14' not supported

   --> /home/eamiel/tmp_cp_release_01/copperhead/demo-apps/belex-direct-fragment/device/../mat_vec_device.py:279:5

    |

279 |     a: Pointer[u16[32768]] = c_p_pointer(vresult_l4, u16[32768])

But i16 works:
a: Pointer[i16[32768]] = c_p_pointer(vresult_l4, i16[32768])

Metadata

Metadata

Assignees

Labels

cLabel for C language related changes

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions