WCHAR temp[30] = L"18446744071646463584";
ULONGLONG i = _wtoi64(temp);
in VS2003, Ok no overflow, i = 0xfff.....;
in Vs2008, overflow happen, i=0x7fffff...;
From MSDN:
In Visual C++ 2005, in the case of overflow with large positive integral values, _atoi64 returns I64_MAX and I64_MIN in the case of overflow with large negative integral values.
posted on 2008-11-06 18:53
Sean 阅读(166)
评论(0) 编辑 收藏 引用