aboutsummaryrefslogtreecommitdiff
path: root/lmathlib.c
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-09-05 15:36:47 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-09-05 15:36:47 -0300
commit9ea06e61f20ae34974226074fc6123dbb54a07c2 (patch)
treefe3333a7b89490be71b26047a5bc2d836113bf72 /lmathlib.c
parentffbcadfb4197213d55222bca3ecc52606cd980f4 (diff)
downloadlua-9ea06e61f20ae34974226074fc6123dbb54a07c2.tar.gz
lua-9ea06e61f20ae34974226074fc6123dbb54a07c2.tar.bz2
lua-9ea06e61f20ae34974226074fc6123dbb54a07c2.zip
Details
- LUAMOD_API defined as 'extern "C"' in C++. - "ANSI C" is in fact "ISO C" (comments) - Removed option -std from makefile in testes/libs. (Easier to change to C++ for tests).
Diffstat (limited to 'lmathlib.c')
-rw-r--r--lmathlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lmathlib.c b/lmathlib.c
index 2f0f3d1b..a6b13f96 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -278,7 +278,7 @@ static int math_type (lua_State *L) {
278*/ 278*/
279 279
280/* 280/*
281** This code uses lots of shifts. ANSI C does not allow shifts greater 281** This code uses lots of shifts. ISO C does not allow shifts greater
282** than or equal to the width of the type being shifted, so some shifts 282** than or equal to the width of the type being shifted, so some shifts
283** are written in convoluted ways to match that restriction. For 283** are written in convoluted ways to match that restriction. For
284** preprocessor tests, it assumes a width of 32 bits, so the maximum 284** preprocessor tests, it assumes a width of 32 bits, so the maximum