https://www.mediawiki.org/wiki/Special:Code/MediaWiki/115469

Revision: 115469
Author:   vvv
Date:     2012-06-02 12:14:57 +0000 (Sat, 02 Jun 2012)
Log Message:
-----------
Fix randomseed() function.

Modified Paths:
--------------
    trunk/php/luasandbox/library.c
    trunk/php/luasandbox/ustring.c

Modified: trunk/php/luasandbox/library.c
===================================================================
--- trunk/php/luasandbox/library.c      2012-06-01 19:29:10 UTC (rev 115468)
+++ trunk/php/luasandbox/library.c      2012-06-02 12:14:57 UTC (rev 115469)
@@ -257,6 +257,7 @@
 {
        php_luasandbox_obj * sandbox = luasandbox_get_php_obj(L);
        sandbox->random_seed = (unsigned int)luaL_checkint(L, 1);
+       return 0;
 }
 /* }}} */
 

Modified: trunk/php/luasandbox/ustring.c
===================================================================
--- trunk/php/luasandbox/ustring.c      2012-06-01 19:29:10 UTC (rev 115468)
+++ trunk/php/luasandbox/ustring.c      2012-06-02 12:14:57 UTC (rev 115469)
@@ -297,7 +297,7 @@
 {
        luasandbox_ustr_header *header;
 
-       header = luaL_checkudata( L, 1, "luasandbox_ustr" );
+       header = luasandbox_checkustring( L, 1 );
 
        lua_pushinteger( L, header->cp_len );
        return 1;


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to