Software / code / prosody
Comparison
util/serialization.lua @ 9692:affcbccc1dff
lint: Remove use of the 143 error code
Does not appear to be invoked by anything
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 08 Dec 2018 17:10:51 +0100 |
| parent | 9570:ce403b6470f8 |
| child | 9863:aebfd1601ae2 |
comparison
equal
deleted
inserted
replaced
| 9691:e11e076f0eb8 | 9692:affcbccc1dff |
|---|---|
| 18 | 18 |
| 19 local pcall = pcall; | 19 local pcall = pcall; |
| 20 local envload = require"util.envload".envload; | 20 local envload = require"util.envload".envload; |
| 21 | 21 |
| 22 local pos_inf, neg_inf = math.huge, -math.huge; | 22 local pos_inf, neg_inf = math.huge, -math.huge; |
| 23 -- luacheck: ignore 143/math | |
| 24 local m_type = math.type or function (n) | 23 local m_type = math.type or function (n) |
| 25 return n % 1 == 0 and n <= 9007199254740992 and n >= -9007199254740992 and "integer" or "float"; | 24 return n % 1 == 0 and n <= 9007199254740992 and n >= -9007199254740992 and "integer" or "float"; |
| 26 end; | 25 end; |
| 27 | 26 |
| 28 local char_to_hex = {}; | 27 local char_to_hex = {}; |