[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Fix crash when loaded with log-level >= 4 (da72019)

Marcel Fabian Krüger tex at 2krueger.de
Tue Feb 11 16:49:09 CET 2020


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/da720196963963ebe2bf8ef5b2a8ed75a7bddf19

>---------------------------------------------------------------

commit da720196963963ebe2bf8ef5b2a8ed75a7bddf19
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Tue Feb 11 16:49:09 2020 +0100

    Fix crash when loaded with log-level >= 4


>---------------------------------------------------------------

da720196963963ebe2bf8ef5b2a8ed75a7bddf19
 src/luaotfload-configuration.lua | 2 +-
 src/luaotfload-main.lua          | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/luaotfload-configuration.lua b/src/luaotfload-configuration.lua
index 8383016..8eb030d 100644
--- a/src/luaotfload-configuration.lua
+++ b/src/luaotfload-configuration.lua
@@ -916,7 +916,7 @@ apply = function (old, new)
   return result
 end
 
-local reconfigure = function ()
+local function reconfigure()
   for i = 1, #reconf_tasks do
     local name, task = unpack (reconf_tasks[i])
     logreport ("both", 3, "conf", "Launch post-configuration task %q.", name)
diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua
index bf19ae1..0f09e40 100644
--- a/src/luaotfload-main.lua
+++ b/src/luaotfload-main.lua
@@ -267,8 +267,8 @@ local install_loaders = function ()
             local t_end = osgettimeofday ()
             local d_t = t_end - t_0
             logreport ("log", 4, "load",
-                       "Module “%s” loaded in %d ms.",
-                       name, d_t)
+                       "Module “%s” loaded in %g ms.",
+                       name, d_t * 1000)
             timing_info.t_init [name] = d_t
         end
     end





More information about the latex3-commits mailing list.