File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -224,20 +224,20 @@ local function readU32(arr)
224224end
225225
226226local function bytesToString (arr )
227- local lenght = arr .n or # arr ;
227+ local length = arr .n or # arr ;
228228
229- if lenght < MAX_UNPACK_COUNT then
229+ if length < MAX_UNPACK_COUNT then
230230 return string.char (table.unpack (arr ))
231231 end
232232
233233 local str = " " ;
234- local overflow = lenght % MAX_UNPACK_COUNT ;
234+ local overflow = length % MAX_UNPACK_COUNT ;
235235
236236 for i = 1 , (# arr - overflow ) / MAX_UNPACK_COUNT do
237237 str = str .. string.char (table.unpack (arr , (i - 1 ) * MAX_UNPACK_COUNT + 1 , i * MAX_UNPACK_COUNT ));
238238 end
239239
240- return str .. (overflow > 0 and string.char (table.unpack (arr , lenght - overflow + 1 , lenght )) or " " );
240+ return str .. (overflow > 0 and string.char (table.unpack (arr , length - overflow + 1 , length )) or " " );
241241end
242242
243243local function isNaN (n )
You can’t perform that action at this time.
0 commit comments