mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-25 16:26:18 +00:00
Changed: #825 Remove all warnings when compiling Ryzom
This commit is contained in:
parent
4163e1a344
commit
0dc0aaffc7
1 changed files with 8 additions and 6 deletions
|
@ -1681,15 +1681,17 @@ NLMISC_CATEGORISED_COMMAND(nel, writeaccess, "write a uint8 value in an invalid
|
||||||
uint8 val = 123;
|
uint8 val = 123;
|
||||||
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
|
||||||
|
}
|
||||||
if(args.size() >= 2) NLMISC::fromString(args[1], val);
|
if(args.size() >= 2) NLMISC::fromString(args[1], val);
|
||||||
*adr = val;
|
*adr = val;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue