aboutsummaryrefslogtreecommitdiff
path: root/lcorolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-02-21 10:44:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-02-21 10:44:53 -0300
commita83ed55f1e3e20f73d01489c18889bb8554593ce (patch)
tree816177a00ce20b36503b6a48bb7d1956c0432859 /lcorolib.c
parentb559aed2d38c6eafcc624da8599b6ac52e11f17c (diff)
downloadlua-a83ed55f1e3e20f73d01489c18889bb8554593ce.tar.gz
lua-a83ed55f1e3e20f73d01489c18889bb8554593ce.tar.bz2
lua-a83ed55f1e3e20f73d01489c18889bb8554593ce.zip
added 'return' (when possible) to calls to error functions
Diffstat (limited to 'lcorolib.c')
-rw-r--r--lcorolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lcorolib.c b/lcorolib.c
index d5552047..cd7e4e1e 100644
--- a/lcorolib.c
+++ b/lcorolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcorolib.c,v 1.3 2011/08/23 17:24:34 roberto Exp roberto $ 2** $Id: lcorolib.c,v 1.4 2012/04/27 18:59:04 roberto Exp roberto $
3** Coroutine Library 3** Coroutine Library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -73,7 +73,7 @@ static int luaB_auxwrap (lua_State *L) {
73 lua_insert(L, -2); 73 lua_insert(L, -2);
74 lua_concat(L, 2); 74 lua_concat(L, 2);
75 } 75 }
76 lua_error(L); /* propagate error */ 76 return lua_error(L); /* propagate error */
77 } 77 }
78 return r; 78 return r;
79} 79}