Mercurial > prosody-hg
comparison util/rsm.lua @ 11428:d91def9fcfdd
util.rsm: Correctly coerce integer value for <index> (fix #1642)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 06 Mar 2021 18:26:50 +0100 |
| parents | c7948491c5e4 |
| children | d10957394a3c |
comparison
equal
deleted
inserted
replaced
| 11427:83f5499d1f10 | 11428:d91def9fcfdd |
|---|---|
| 63 end | 63 end |
| 64 end; | 64 end; |
| 65 max = function (st, data) | 65 max = function (st, data) |
| 66 st:text_tag("max", inttostr(data)); | 66 st:text_tag("max", inttostr(data)); |
| 67 end; | 67 end; |
| 68 index = function (st, data) | |
| 69 st:text_tag("index", inttostr(data)); | |
| 70 end; | |
| 68 count = function (st, data) | 71 count = function (st, data) |
| 69 st:text_tag("count", inttostr(data)); | 72 st:text_tag("count", inttostr(data)); |
| 70 end; | 73 end; |
| 71 }, { | 74 }, { |
| 72 __index = function(_, name) | 75 __index = function(_, name) |
