Mail Archives: djgpp/1997/07/24/22:08:38
On 22 Jul 97 at 22:38, Christian Granstr÷m wrote:
> double X:
> unsigned char Y;
>
> Y = (unsigned char X);
Y = (unsigned char) X;
> This seems to work until i put Y into an vector. Compilator bug???
> It also works fine if I printf() Y before puting it into the vector!
>
> Maybe its not supposed to be done this way at all but the
> compiler does'nt complain about it!!
Strange. Are you using C++? If so, you can declare variables (almost)
anywhere, but I would have thought you'ld get an error about
redeclaration (unless X is global).
Bill
--
Leave others their otherness.
- Raw text -