Skip to content

C-style cast not converted when result is not assigned to a pointer #722

Open
@john-h-kastner

Description

@john-h-kastner
void test() {
  int *a;
  if (a == (int*) 0)
    return;
}

converts to

void test() {
  _Ptr<int> a = ((void *)0);
  if (a == (int*) 0)
    return;
}

The cast (int*) is not converted to (_Ptr<int>), but this is required before the function can be _Checked. This creates a bit more manual work when converting code with 3C.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions