mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Output negative integers as hex.
This commit is contained in:
parent
e2918e7f05
commit
ecaa4b1af0
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,8 @@ class outscript(object):
|
|||
raise lslfuncs.ELSLTypeMismatch
|
||||
return '"' + value.encode('utf8').replace('\\','\\\\').replace('"','\\"').replace('\n','\\n') + '"'
|
||||
if type(value) == int:
|
||||
if value < 0:
|
||||
return '0x%X' % (value + 4294967296)
|
||||
return str(value)
|
||||
if type(value) == float:
|
||||
s = str(value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue