Microsoft/Visual Studio
warning C4267: '초기화 중' : 'size_t'에서 'int'(으)로 변환하면서 데이터가 손실될 수 있습니다.
구차니
2011. 10. 18. 18:11
size_t나 int나 같은줄 알았는데
visual studio / MS에서는 다른듯..
한줄요약 : size_t는 unsinged long 형이다.
visual studio / MS에서는 다른듯..
한줄요약 : size_t는 unsinged long 형이다.
SIZE_T The maximum number of bytes to which a pointer can point. Use for a count that must span the full range of a pointer.
This type is declared in BaseTsd.h as follows:
typedef ULONG_PTR SIZE_T;
ULONG_PTR
An unsigned LONG_PTR.
This type is declared in BaseTsd.h as follows:
#if defined(_WIN64)
typedef unsigned __int64 ULONG_PTR;
#else
typedef unsigned long ULONG_PTR;
#endif
[링크 : http://msdn.microsoft.com/en-us/library/aa383751(v=vs.85).aspx] |