Hi,
Using VS2005 I'm trying out some unsave code but have some strange results.
My english is not well so I give example:
private void testToolStripMenuItem2_Click(object sender, EventArgs e)
{
char[] ttt = "5".ToCharArray();
test(ttt);
}
unsafe void test(char[] _a)
{
fixed (char* a = _a) {
double t = *a - 0x30;
t /= 10;
double tt = (*a - 0x30) / 10;
}
}
In the procedure test, t is 0.5 in second line witch is correct. But tt is
0. Wy ? It is exacly same code unless I'm missing somting...
--
rgds, Wilfried
http://www.mestdagh.biz