Menu

#10 Invalid implicit conversion from float to enum

open
nobody
None
5
2012-09-21
2012-09-21
No

Hi,

While compiling your package using our research compiler infrastructure we noticed the following invalid implicit conversion:

in src/g2_fif.c, line 178:

rv=g2_open_gd(str, *width, *height, *gd_type);

with gd_type being of type F_REAL, but g2_open_gd is declared as

G2L int g2_open_gd(const char *filename, int width, int height,enum g2_gd_type gd_type);

This conversion has undefined behaviour.

Best,
Michael

Discussion


Log in to post a comment.