From: Antoine Cellerier Date: Fri, 26 Feb 2010 11:14:26 +0000 (+0100) Subject: Use pushliteral instead of pushstring where possible. Saves a strlen call. X-Git-Tag: 1.1.0-pre1~576 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d69b5e609845a113328dc724e241d5e900091c9f;p=vlc Use pushliteral instead of pushstring where possible. Saves a strlen call. --- diff --git a/modules/misc/lua/libs/misc.c b/modules/misc/lua/libs/misc.c index 10d1424a1a..ca1e69ced8 100644 --- a/modules/misc/lua/libs/misc.c +++ b/modules/misc/lua/libs/misc.c @@ -99,7 +99,7 @@ static int vlclua_copyright( lua_State *L ) *****************************************************************************/ static int vlclua_license( lua_State *L ) { - lua_pushstring( L, LICENSE_MSG ); + lua_pushliteral( L, LICENSE_MSG ); return 1; }