diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-05-06 14:19:08 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-05-06 14:19:08 -0300 |
commit | 61a4e64a6667bedaa882571c48a173ef5a4ba73b (patch) | |
tree | a68bc1aef4dded2da5f4b0bd8c084075c18ae355 /testes | |
parent | 9a6f47f0edfded799f7cb6fd719bb0071b326100 (diff) | |
download | lua-61a4e64a6667bedaa882571c48a173ef5a4ba73b.tar.gz lua-61a4e64a6667bedaa882571c48a173ef5a4ba73b.tar.bz2 lua-61a4e64a6667bedaa882571c48a173ef5a4ba73b.zip |
Back to old encoding of versions in binary files
(Undoing part of commit f53eabeed8.) It is better to keep this encoding
stable, so that all Lua versions can read at least the version of a
binary file.
Diffstat (limited to 'testes')
-rw-r--r-- | testes/calls.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testes/calls.lua b/testes/calls.lua index 0141ffa4..1701f155 100644 --- a/testes/calls.lua +++ b/testes/calls.lua | |||
@@ -422,9 +422,9 @@ assert((function (a) return a end)() == nil) | |||
422 | 422 | ||
423 | print("testing binary chunks") | 423 | print("testing binary chunks") |
424 | do | 424 | do |
425 | local header = string.pack("c4BBBc6BBBj", | 425 | local header = string.pack("c4BBc6BBBj", |
426 | "\27Lua", -- signature | 426 | "\27Lua", -- signature |
427 | (504 >> 7) & 0x7f, (504 & 0x7f) | 0x80, -- version 5.4 (504) | 427 | 0x54, -- version 5.4 (0x54) |
428 | 0, -- format | 428 | 0, -- format |
429 | "\x19\x93\r\n\x1a\n", -- data | 429 | "\x19\x93\r\n\x1a\n", -- data |
430 | 4, -- size of instruction | 430 | 4, -- size of instruction |