ソースを参照

added cast to avoid warning

Roberto Ierusalimschy 11 年 前
コミット
61fa462535
1 ファイル変更2 行追加2 行削除
  1. 2 2
      lbaselib.c

+ 2 - 2
lbaselib.c

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: lbaselib.c,v 1.292 2014/07/17 13:53:37 roberto Exp roberto $
+** $Id: lbaselib.c,v 1.293 2014/07/24 19:33:29 roberto Exp roberto $
 ** Basic library
 ** Basic library
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -438,7 +438,7 @@ static int finishpcall (lua_State *L, int status, lua_Ctx extra) {
     return 2;  /* return false, msg */
     return 2;  /* return false, msg */
   }
   }
   else
   else
-    return lua_gettop(L) - extra;  /* return all results */
+    return lua_gettop(L) - (int)extra;  /* return all results */
 }
 }