shithub: lu9-lua

Download patch

ref: 5a71c1d2face6d917e5be7987a6942a5d32ffff2
parent: b9457814e7140bcb32b39d50bc5f77a499335202
author: kvik <[email protected]>
date: Sat Feb 6 17:55:14 EST 2021

math: log2 is also missing from Plan 9 libc

--- a/lmathlib.c
+++ b/lmathlib.c
@@ -173,7 +173,7 @@
     res = l_mathop(log)(x);
   else {
     lua_Number base = luaL_checknumber(L, 2);
-#if !defined(LUA_USE_C89)
+#if !defined(LUA_USE_C89) && !defined(LUA_USE_PLAN9)
     if (base == l_mathop(2.0))
       res = l_mathop(log2)(x); else
 #endif