Changed: #825 Remove all warnings when compiling Ryzom

hg/feature/sound
kervala 14 years ago
parent bf23d8c3a4
commit c11e81dd7c

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

Loading…
Cancel
Save