Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

int conversion warning

Status
Not open for further replies.

RichieMac

Programmer
Aug 18, 2004
61
GB
Hi

Could anyone tell me what this warning means:

warning C4267: 'function' : conversion from 'size_t' to 'unsigned int', possible loss of data

Thanks
 
In VC++ 6.0 size_t typedef (i.e. type alias name) is the same as unsigned int and you can't get this message at all. In other implementation you can: for example, if size_t is defined as unsigned long (C Standard does not specify integral type for size_t). See size_t definition in <stdlib.h> header in your compiler include library...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top