Changed: #825 Remove all warnings when compiling Ryzom

This commit is contained in:
kervala 2011-05-29 16:23:08 +02:00
parent 44b7912330
commit 49c3ae1b85

View file

@ -1681,6 +1681,7 @@ NLMISC_CATEGORISED_COMMAND(nel, writeaccess, "write a uint8 value in an invalid
uint8 val = 123;
uint8 *adr = (uint8*)0;
if(args.size() >= 1)
{
#ifdef HAVE_X86_64
uint64 addr64;
NLMISC::fromString(args[0], addr64);
@ -1690,6 +1691,7 @@ NLMISC_CATEGORISED_COMMAND(nel, writeaccess, "write a uint8 value in an invalid
NLMISC::fromString(args[0], addr32);
adr = (uint8*)addr32;
#endif
}
if(args.size() >= 2) NLMISC::fromString(args[1], val);
*adr = val;
return true;