[Bug c++/38055] key for compilation -Wconversion
lisp2d at lisp2d dot net
gcc-bugzilla@gcc.gnu.org
Sat Jan 24 06:00:00 GMT 2009
------- Comment #2 from lisp2d at lisp2d dot net 2009-01-24 06:00 -------
The niche is selected incorrectly. Basically the considerable quantity of
errors of programming is linked to implicit type conversion.
void insert(char*,char,unsigned int){..}
insert(..,..,size_t);
Example
double d = 1.0;
int i;
i = d;
correctly and necessary to write so:
double d = 1.0;
int i;
i = (int)d;
In the program text this obvious conversion will be visible.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38055
More information about the Gcc-bugs
mailing list