C++ Question warning C4244 problem Pylon

Woodylepic

New member
Joined
Dec 29, 2009
Messages
71
Reaction score
0
Points
0
I'm trying to compile an oldy 2003 C++ program and I got this error

warning C4244: 'argument': conversion of 'time_t' in 'unsigned int', possible lost of data


from this line in my RAMDOM.H header file

inline void randomize(void) { srand(time(NULL)); }

time_t is a h file include in Microsoft Visual Studio 9.0\VC\include somebody know the solution ?
how to resolve this :huh: ?


 
Ok so I will wright
inline void randomize(void) { srand UINT(time(NULL)); } ?
 
Last edited:
Back
Top