Hi all,
when i called the function below :
Code:
unsigned long
ChaineInc::hache() const
{
if ((!stock) || (!*(stock->c)))
return 0;
unsigned long graine = 398477;
char* car;
for (car = stock->c; *car; car++)
{
graine += *car, graine = (((graine ? graine : 1) * 785398169) % 151147861);
}
POSTCONDITION(graine >= 0);
return graine;
}
from my code :
Code:
//const Key g
unsigned long i=hache(g) + (unsigned long)this;
i got this warning:
warning C4311: 'type cast' : pointer truncation from 'Index_Dico *const ' to 'unsigned long'
How can i avoid this warning ?
P.S : i can modify the function hache
Best regars,