aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-04-29 13:58:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-04-29 13:58:10 -0300
commit9b9becf38402a1787c4f723c705e2e3baa374573 (patch)
tree78f8173b7a42954537d96358a36c211625c48e58 /ldebug.c
parent00744a272908d9212fb1c82157260195d62fe81c (diff)
downloadlua-9b9becf38402a1787c4f723c705e2e3baa374573.tar.gz
lua-9b9becf38402a1787c4f723c705e2e3baa374573.tar.bz2
lua-9b9becf38402a1787c4f723c705e2e3baa374573.zip
added 'const' to parameters of 'luaG_concaterror'
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index 478c642e..fa7bbd96 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 2.92 2013/04/26 13:07:53 roberto Exp roberto $ 2** $Id: ldebug.c,v 2.93 2013/04/26 16:03:50 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -517,7 +517,7 @@ l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *op) {
517} 517}
518 518
519 519
520l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2) { 520l_noret luaG_concaterror (lua_State *L, const TValue *p1, const TValue *p2) {
521 if (ttisstring(p1) || ttisnumber(p1)) p1 = p2; 521 if (ttisstring(p1) || ttisnumber(p1)) p1 = p2;
522 lua_assert(!ttisstring(p1) && !ttisnumber(p2)); 522 lua_assert(!ttisstring(p1) && !ttisnumber(p2));
523 luaG_typeerror(L, p1, "concatenate"); 523 luaG_typeerror(L, p1, "concatenate");