mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-03 00:18:20 +00:00
The Base64 functions that used to produce garbage no longer do
This commit is contained in:
parent
b6a5e01ed4
commit
53e8bd659a
6 changed files with 35 additions and 30 deletions
13
unit_tests/regression.suite/fixed-b64.lsl
Normal file
13
unit_tests/regression.suite/fixed-b64.lsl
Normal file
|
@ -0,0 +1,13 @@
|
|||
// Some Base64 functions used to return garbage, now they no longer do
|
||||
default
|
||||
{
|
||||
timer()
|
||||
{
|
||||
llSetPrimitiveParams( // we need a function that causes side effects,
|
||||
// so that it isn't optimized out
|
||||
[ llXorBase64StringsCorrect("++++", "?")
|
||||
, llXorBase64("++++", "?")
|
||||
, llBase64ToInteger("ABC")
|
||||
]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue