Changed: #825 Remove all warnings when compiling Ryzom

This commit is contained in:
kervala 2011-05-29 16:20:34 +02:00
parent 1e19a3d399
commit 4163e1a344

View file

@ -1700,15 +1700,17 @@ NLMISC_CATEGORISED_COMMAND(nel, readaccess, "read a uint8 value in an invalid ad
uint8 val; uint8 val;
uint8 *adr = (uint8*)0; uint8 *adr = (uint8*)0;
if(args.size() == 1) if(args.size() == 1)
{
#ifdef HAVE_X86_64 #ifdef HAVE_X86_64
uint64 addr64; uint64 addr64;
NLMISC::fromString(args[0], addr64); NLMISC::fromString(args[0], addr64);
adr = (uint8*)addr64; adr = (uint8*)addr64;
#else #else
uint32 addr32; uint32 addr32;
NLMISC::fromString(args[0], addr32); NLMISC::fromString(args[0], addr32);
adr = (uint8*)addr32; adr = (uint8*)addr32;
#endif #endif
}
val = *adr; val = *adr;
log.displayNL("value is %hu", (uint16)val); log.displayNL("value is %hu", (uint16)val);
return true; return true;