get owned

This commit is contained in:
2026-06-18 22:38:01 +02:00
parent 3e1d0ba5d9
commit 2d043ca39f
7 changed files with 156 additions and 168 deletions

View File

@@ -403,15 +403,9 @@ noom_uint_t noomL_getstring(const char* s, noomL_ErrorType* error, noom_LuaVersi
noom_uint_t order = 0;
int succ = 0;
while (s[len] == '=') {
order++;
len++;
}
while (s[len] == '=') order++, len++;
if (s[len] == '[') {
len++;
succ = 1;
}
if (s[len] == '[') len++, succ = 1;
if (succ) { // it is a multi-line string.
while (1) {
@@ -420,10 +414,7 @@ noom_uint_t noomL_getstring(const char* s, noomL_ErrorType* error, noom_LuaVersi
noom_uint_t order2 = 0;
noom_uint_t startp = len; // intentionally after the `]`
while (s[len] == '=') {
order2++;
len++;
}
while (s[len] == '=') order2++, len++;
if (s[len] == ']' && order == order2) { // holy shit it's real
len++;