summaryrefslogtreecommitdiff
path: root/lmathlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-11-19 16:16:33 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-11-19 16:16:33 -0200
commit6153200bc25bd99f9d3d25d7caa486b03b6535d5 (patch)
tree67de753105b00fb99bd561a9dde415257b2f7abe /lmathlib.c
parent2e7595522db676e77ee057f091dcc10a0f3d885f (diff)
downloadlua-6153200bc25bd99f9d3d25d7caa486b03b6535d5.tar.gz
lua-6153200bc25bd99f9d3d25d7caa486b03b6535d5.tar.bz2
lua-6153200bc25bd99f9d3d25d7caa486b03b6535d5.zip
make sure there is no mem problems, using %.ns instead of %s for luaV_error.
Diffstat (limited to 'lmathlib.c')
-rw-r--r--lmathlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lmathlib.c b/lmathlib.c
index 18967220..1a96df20 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmathlib.c,v 1.3 1997/11/03 21:11:44 roberto Exp roberto $ 2** $Id: lmathlib.c,v 1.4 1997/11/04 15:27:53 roberto Exp roberto $
3** Lua standard mathematical library 3** Lua standard mathematical library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -30,7 +30,7 @@ static double torad (void)
30 case 'r' : return 1.0; 30 case 'r' : return 1.0;
31 case 'g' : return PI/50.0; 31 case 'g' : return PI/50.0;
32 default: 32 default:
33 luaL_verror("invalid _TRIGMODE (`%s')", s); 33 luaL_verror("invalid _TRIGMODE (`%.50s')", s);
34 return 0; /* to avoid warnings */ 34 return 0; /* to avoid warnings */
35 } 35 }
36} 36}