aboutsummaryrefslogtreecommitdiff
path: root/testes
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-07-03 11:36:56 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-07-03 11:36:56 -0300
commite96385adede47a1abf160a41565ec742d3d4e413 (patch)
tree9aff6c3074d329b72b4d6a10299f30e1487e5010 /testes
parent56a165bf0f061f7aff744fafd44691a2beb4b035 (diff)
downloadlua-e96385adede47a1abf160a41565ec742d3d4e413.tar.gz
lua-e96385adede47a1abf160a41565ec742d3d4e413.tar.bz2
lua-e96385adede47a1abf160a41565ec742d3d4e413.zip
Simplification and smaller buffers for 'lua_pushfstring'
The function 'lua_pushfstring' is seldom called with large strings, there is no need to optimize too much for that cases.
Diffstat (limited to 'testes')
-rw-r--r--testes/strings.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/testes/strings.lua b/testes/strings.lua
index 4a10857e..2fa4a89f 100644
--- a/testes/strings.lua
+++ b/testes/strings.lua
@@ -438,7 +438,7 @@ else
438 438
439 -- formats %U, %f, %I already tested elsewhere 439 -- formats %U, %f, %I already tested elsewhere
440 440
441 local blen = 400 -- internal buffer length in 'luaO_pushfstring' 441 local blen = 200 -- internal buffer length in 'luaO_pushfstring'
442 442
443 local function callpfs (op, fmt, n) 443 local function callpfs (op, fmt, n)
444 local x = {T.testC("pushfstring" .. op .. "; return *", fmt, n)} 444 local x = {T.testC("pushfstring" .. op .. "; return *", fmt, n)}