?
=?ISO-8859-15?Q?Joachim_B=F6rger?=
Good evening!
I'm using variables to count from 0 to 4 in a recursion, and I just
realized that I could save a lot of memory (and computational time?) by
using a BYTE instead of an int.
But, having an assignment like
BYTE b = 5, bb = 10;
b+= bb;
the vc8-compiler puts out a warning message C4244 saying: "conversion
from int to byte, possible loss of data (or similar"). So, I guessed
that the += operator converts all stuff to int and then back to BYTE?
If I replace the second line by b = b + bb, the warning message
disappears, but I prefer the += operator which saves memory allication.
Any clues?
Joachim
I'm using variables to count from 0 to 4 in a recursion, and I just
realized that I could save a lot of memory (and computational time?) by
using a BYTE instead of an int.
But, having an assignment like
BYTE b = 5, bb = 10;
b+= bb;
the vc8-compiler puts out a warning message C4244 saying: "conversion
from int to byte, possible loss of data (or similar"). So, I guessed
that the += operator converts all stuff to int and then back to BYTE?
If I replace the second line by b = b + bb, the warning message
disappears, but I prefer the += operator which saves memory allication.
Any clues?
Joachim