dkorpel / ctod

Automatically translate C code to D

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

if(arr[idx] == val) adds the .ptr

schveiguy opened this issue · comments

int buf[10];
if(buf[0] == 5) {}
int[10] buf;
if(buf[0].ptr == 5) {}

That .ptr shouldn't be there.

It thought buf and buf[0] are the same expression because they have the same start location. Fixed by 2c23a7f