diff -r lua-5.3.4/README lua-5.3.5/README 2c2 < This is Lua 5.3.4, released on 12 Jan 2017. --- > This is Lua 5.3.5, released on 26 Jun 2018. diff -r lua-5.3.4/doc/contents.html lua-5.3.5/doc/contents.html 35c35 < Copyright © 2015–2017 Lua.org, PUC-Rio. --- > Copyright © 2015–2018 Lua.org, PUC-Rio. 612c612 < Thu Dec 22 18:29:39 BRST 2016 --- > Mon Jun 18 22:56:06 -03 2018 615c615 < Last change: revised for Lua 5.3.4 --- > Last change: revised for Lua 5.3.5 diff -r lua-5.3.4/doc/lua.css lua-5.3.5/doc/lua.css 13c13 < border: solid #a0a0a0 1px ; --- > border: solid #ccc 1px ; 114,118c114 < td.gutter { < width: 4% ; < } < < table.columns { --- > table { 124,125c120 < table.columns td { < vertical-align: top ; --- > td { 127,129c122 < padding-bottom: 1em ; < text-align: justify ; < line-height: 1.25 ; --- > margin: 0 ; 132,133c125,126 < p.logos a:link:hover, p.logos a:visited:hover { < background-color: inherit ; --- > td.gutter { > width: 4% ; 136,139c129,133 < table.book { < border: none ; < border-spacing: 0 ; < border-collapse: collapse ; --- > table.columns td { > vertical-align: top ; > padding-bottom: 1em ; > text-align: justify ; > line-height: 1.25 ; 143d136 < padding: 0 ; 161a155,158 > p.logos a:link:hover, p.logos a:visited:hover { > background-color: inherit ; > } > diff -r lua-5.3.4/doc/manual.html lua-5.3.5/doc/manual.html 22c22 < Copyright © 2015–2017 Lua.org, PUC-Rio. --- > Copyright © 2015–2018 Lua.org, PUC-Rio. 38c38 < --- > 206,207c206,207 < that is, arrays that can be indexed not only with numbers, < but with any Lua value except nil and NaN. --- > that is, arrays that can have as indices not only numbers, > but any Lua value except nil and NaN. 402a403,404 > Unless stated otherwise, > metamethods should be function values. 600c602 < The indexing access table[key]. --- > The indexing access operation table[key]. 1279,1285c1281,1282 < The meaning of accesses to table fields can be changed via metatables. < An access to an indexed variable t[i] is equivalent to < a call gettable_event(t,i). < (See §2.4 for a complete description of the < gettable_event function. < This function is not defined or callable in Lua. < We use it here only for explanatory purposes.) --- > The meaning of accesses to table fields can be changed via metatables > (see §2.4). 1480,1490d1476 < The meaning of assignments to global variables < and table fields can be changed via metatables. < An assignment to an indexed variable t[i] = val is equivalent to < settable_event(t,i,val). < (See §2.4 for a complete description of the < settable_event function. < This function is not defined or callable in Lua. < We use it here only for explanatory purposes.) < < <

1495a1482,1487 >

> The meaning of assignments to table fields and > global variables (which are actually table fields, too) > can be changed via metatables (see §2.4). > > 1834c1826 < a,b = ... -- a gets the first vararg parameter, b gets --- > a,b = ... -- a gets the first vararg argument, b gets 1836c1828 < -- is no corresponding vararg parameter) --- > -- is no corresponding vararg argument) 1841c1833 < return ... -- returns all received vararg parameters --- > return ... -- returns all received vararg arguments 1844c1836 < {...} -- creates a list with all vararg parameters --- > {...} -- creates a list with all vararg arguments 2042c2034 < Closures with the same reference are always equal. --- > A closure is always equal to itself. 2044a2037,2039 > Closures created at different times but with no detectable differences > may be classified as equal or not > (depending on internal caching details). 2306c2301 < having as first parameter the value of prefixexp, --- > having as first argument the value of prefixexp, 2884c2879 < (e.g., a Lua parameter to the function, --- > (e.g., a Lua argument to the function, 3373c3368 < On several platforms, you may not need to call this function, --- > In several platforms, you may not need to call this function, 5587c5582 < To get information about a function you push it onto the stack --- > To get information about a function, you push it onto the stack 6465c6460 < of the object at index obj and returns the type of pushed value. --- > of the object at index obj and returns the type of the pushed value. 6752c6747 < parameters. --- > arguments. 8683c8678 < You can put an hyphen in a set --- > You can put a hyphen in a set 9085,9086c9080,9081 < Returns a new table with all parameters stored into keys 1, 2, etc. < and with a field "n" with the total number of parameters. --- > Returns a new table with all arguments stored into keys 1, 2, etc. > and with a field "n" with the total number of arguments. 9218c9213 < but uses the signs of both parameters to find the --- > but uses the signs of both arguments to find the 9519c9514 < On non-POSIX systems, --- > In non-POSIX systems, 9556c9551 < When called without parameters, --- > When called without arguments, 9583c9578 < In this case it does not close the file when the loop ends. --- > In this case, the iterator does not close the file when the loop ends. 9966c9961 < On non-POSIX systems, --- > In non-POSIX systems, 10166c10161 < On POSIX systems, --- > In POSIX systems, 10304,10305c10299,10300 < Negative indices refer to vararg parameters; < -1 is the first vararg parameter. --- > Negative indices refer to vararg arguments; > -1 is the first vararg argument. 10403c10398 < When the hook is called, its first parameter is a string --- > When the hook is called, its first argument is a string 10554c10549,10550 <

  • -l mod: "requires" mod;
  • --- >
  • -l mod: "requires" mod and assigns the > result to global @mod;
  • 10632c10628 < the script is called with parameters --- > the script is called with arguments 10818c10814 < which now accepts one or two parameters; --- > which now accepts one or two arguments; 10853c10849 < Continuation functions now receive as parameters what they needed --- > Continuation functions now receive as arguments what they needed 10975a10972 > 10978c10975 < Mon Jan 9 13:30:53 BRST 2017 --- > Tue Jun 26 13:16:37 -03 2018 10981c10978 < Last change: revised for Lua 5.3.4 --- > Last change: revised for Lua 5.3.5 diff -r lua-5.3.4/doc/readme.html lua-5.3.5/doc/readme.html 110c110 < the top-level directory, which is named lua-5.3.x. --- > the top-level directory, which is named lua-5.3.5. 358c358 < Thu Dec 22 18:22:57 BRST 2016 --- > Mon Jun 18 22:57:33 -03 2018 361c361 < Last change: revised for Lua 5.3.4 --- > Last change: revised for Lua 5.3.5 diff -r lua-5.3.4/src/Makefile lua-5.3.5/src/Makefile 105c105 < $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -lreadline" --- > $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX -DLUA_USE_READLINE -I/usr/include/edit" SYSLIBS="-Wl,-E -ledit" CC="cc" 113c113 < $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX" SYSLIBS="-lreadline" CC=cc --- > $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX" SYSLIBS="-lreadline" diff -r lua-5.3.4/src/lapi.c lua-5.3.5/src/lapi.c 2c2 < ** $Id: lapi.c,v 2.259 2016/02/29 14:27:14 roberto Exp $ --- > ** $Id: lapi.c,v 2.259.1.2 2017/12/06 18:35:12 roberto Exp $ 535a536 > api_incr_top(L); 548a550,551 > api_incr_top(L); > luaC_checkGC(L); 550,551d552 < api_incr_top(L); < luaC_checkGC(L); diff -r lua-5.3.4/src/lapi.h lua-5.3.5/src/lapi.h 2c2 < ** $Id: lapi.h,v 2.9 2015/03/06 19:49:50 roberto Exp $ --- > ** $Id: lapi.h,v 2.9.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lauxlib.c lua-5.3.5/src/lauxlib.c 2c2 < ** $Id: lauxlib.c,v 1.289 2016/12/20 18:37:00 roberto Exp $ --- > ** $Id: lauxlib.c,v 1.289.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lauxlib.h lua-5.3.5/src/lauxlib.h 2c2 < ** $Id: lauxlib.h,v 1.131 2016/12/06 14:54:31 roberto Exp $ --- > ** $Id: lauxlib.h,v 1.131.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lbaselib.c lua-5.3.5/src/lbaselib.c 2c2 < ** $Id: lbaselib.c,v 1.314 2016/09/05 19:06:34 roberto Exp $ --- > ** $Id: lbaselib.c,v 1.314.1.1 2017/04/19 17:39:34 roberto Exp $ diff -r lua-5.3.4/src/lbitlib.c lua-5.3.5/src/lbitlib.c 2c2 < ** $Id: lbitlib.c,v 1.30 2015/11/11 19:08:09 roberto Exp $ --- > ** $Id: lbitlib.c,v 1.30.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lcode.c lua-5.3.5/src/lcode.c 2c2 < ** $Id: lcode.c,v 2.112 2016/12/22 13:08:50 roberto Exp $ --- > ** $Id: lcode.c,v 2.112.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lcode.h lua-5.3.5/src/lcode.h 2c2 < ** $Id: lcode.h,v 1.64 2016/01/05 16:22:37 roberto Exp $ --- > ** $Id: lcode.h,v 1.64.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lcorolib.c lua-5.3.5/src/lcorolib.c 2c2 < ** $Id: lcorolib.c,v 1.10 2016/04/11 19:19:55 roberto Exp $ --- > ** $Id: lcorolib.c,v 1.10.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lctype.c lua-5.3.5/src/lctype.c 2c2 < ** $Id: lctype.c,v 1.12 2014/11/02 19:19:04 roberto Exp $ --- > ** $Id: lctype.c,v 1.12.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lctype.h lua-5.3.5/src/lctype.h 2c2 < ** $Id: lctype.h,v 1.12 2011/07/15 12:50:29 roberto Exp $ --- > ** $Id: lctype.h,v 1.12.1.1 2013/04/12 18:48:47 roberto Exp $ diff -r lua-5.3.4/src/ldblib.c lua-5.3.5/src/ldblib.c 2c2 < ** $Id: ldblib.c,v 1.151 2015/11/23 11:29:43 roberto Exp $ --- > ** $Id: ldblib.c,v 1.151.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/ldebug.c lua-5.3.5/src/ldebug.c 2c2 < ** $Id: ldebug.c,v 2.121 2016/10/19 12:32:10 roberto Exp $ --- > ** $Id: ldebug.c,v 2.121.1.2 2017/07/10 17:21:50 roberto Exp $ 655a656 > luaC_checkGC(L); /* error message uses memory */ diff -r lua-5.3.4/src/ldebug.h lua-5.3.5/src/ldebug.h 2c2 < ** $Id: ldebug.h,v 2.14 2015/05/22 17:45:56 roberto Exp $ --- > ** $Id: ldebug.h,v 2.14.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/ldo.c lua-5.3.5/src/ldo.c 2c2 < ** $Id: ldo.c,v 2.157 2016/12/13 15:52:21 roberto Exp $ --- > ** $Id: ldo.c,v 2.157.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/ldo.h lua-5.3.5/src/ldo.h 2c2 < ** $Id: ldo.h,v 2.29 2015/12/21 13:02:14 roberto Exp $ --- > ** $Id: ldo.h,v 2.29.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/ldump.c lua-5.3.5/src/ldump.c 2c2 < ** $Id: ldump.c,v 2.37 2015/10/08 15:53:49 roberto Exp $ --- > ** $Id: ldump.c,v 2.37.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lfunc.c lua-5.3.5/src/lfunc.c 2c2 < ** $Id: lfunc.c,v 2.45 2014/11/02 19:19:04 roberto Exp $ --- > ** $Id: lfunc.c,v 2.45.1.1 2017/04/19 17:39:34 roberto Exp $ diff -r lua-5.3.4/src/lfunc.h lua-5.3.5/src/lfunc.h 2c2 < ** $Id: lfunc.h,v 2.15 2015/01/13 15:49:11 roberto Exp $ --- > ** $Id: lfunc.h,v 2.15.1.1 2017/04/19 17:39:34 roberto Exp $ diff -r lua-5.3.4/src/lgc.c lua-5.3.5/src/lgc.c 2c2 < ** $Id: lgc.c,v 2.215 2016/12/22 13:08:50 roberto Exp $ --- > ** $Id: lgc.c,v 2.215.1.2 2017/08/31 16:15:27 roberto Exp $ 646d645 < removeentry(n); /* and remove entry from table */ 647a647,648 > if (ttisnil(gval(n))) /* is entry empty? */ > removeentry(n); /* remove entry from table */ diff -r lua-5.3.4/src/lgc.h lua-5.3.5/src/lgc.h 2c2 < ** $Id: lgc.h,v 2.91 2015/12/21 13:02:14 roberto Exp $ --- > ** $Id: lgc.h,v 2.91.1.1 2017/04/19 17:39:34 roberto Exp $ diff -r lua-5.3.4/src/linit.c lua-5.3.5/src/linit.c 2c2 < ** $Id: linit.c,v 1.39 2016/12/04 20:17:24 roberto Exp $ --- > ** $Id: linit.c,v 1.39.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/liolib.c lua-5.3.5/src/liolib.c 2c2 < ** $Id: liolib.c,v 2.151 2016/12/20 18:37:00 roberto Exp $ --- > ** $Id: liolib.c,v 2.151.1.1 2017/04/19 17:29:57 roberto Exp $ 208a209,214 > static int f_close (lua_State *L) { > tofile(L); /* make sure argument is an open stream */ > return aux_close(L); > } > > 212,213c218 < tofile(L); /* make sure argument is an open stream */ < return aux_close(L); --- > return f_close(L); 715c720 < {"close", io_close}, --- > {"close", f_close}, diff -r lua-5.3.4/src/llex.c lua-5.3.5/src/llex.c 2c2 < ** $Id: llex.c,v 2.96 2016/05/02 14:02:12 roberto Exp $ --- > ** $Id: llex.c,v 2.96.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/llex.h lua-5.3.5/src/llex.h 2c2 < ** $Id: llex.h,v 1.79 2016/05/02 14:02:12 roberto Exp $ --- > ** $Id: llex.h,v 1.79.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/llimits.h lua-5.3.5/src/llimits.h 2c2 < ** $Id: llimits.h,v 1.141 2015/11/19 19:16:22 roberto Exp $ --- > ** $Id: llimits.h,v 1.141.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lmathlib.c lua-5.3.5/src/lmathlib.c 2c2 < ** $Id: lmathlib.c,v 1.119 2016/12/22 13:08:50 roberto Exp $ --- > ** $Id: lmathlib.c,v 1.119.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lmem.c lua-5.3.5/src/lmem.c 2c2 < ** $Id: lmem.c,v 1.91 2015/03/06 19:45:54 roberto Exp $ --- > ** $Id: lmem.c,v 1.91.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lmem.h lua-5.3.5/src/lmem.h 2c2 < ** $Id: lmem.h,v 1.43 2014/12/19 17:26:14 roberto Exp $ --- > ** $Id: lmem.h,v 1.43.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/loadlib.c lua-5.3.5/src/loadlib.c 2c2 < ** $Id: loadlib.c,v 1.130 2017/01/12 17:14:26 roberto Exp $ --- > ** $Id: loadlib.c,v 1.130.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lobject.c lua-5.3.5/src/lobject.c 2c2 < ** $Id: lobject.c,v 2.113 2016/12/22 13:08:50 roberto Exp $ --- > ** $Id: lobject.c,v 2.113.1.1 2017/04/19 17:29:57 roberto Exp $ 438c438,439 < int l = l_sprintf(buff, sizeof(buff), "%p", va_arg(argp, void *)); --- > void *p = va_arg(argp, void *); > int l = lua_pointer2str(buff, sizeof(buff), p); diff -r lua-5.3.4/src/lobject.h lua-5.3.5/src/lobject.h 2c2 < ** $Id: lobject.h,v 2.117 2016/08/01 19:51:24 roberto Exp $ --- > ** $Id: lobject.h,v 2.117.1.1 2017/04/19 17:39:34 roberto Exp $ diff -r lua-5.3.4/src/lopcodes.c lua-5.3.5/src/lopcodes.c 2c2 < ** $Id: lopcodes.c,v 1.55 2015/01/05 13:48:33 roberto Exp $ --- > ** $Id: lopcodes.c,v 1.55.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lopcodes.h lua-5.3.5/src/lopcodes.h 2c2 < ** $Id: lopcodes.h,v 1.149 2016/07/19 17:12:21 roberto Exp $ --- > ** $Id: lopcodes.h,v 1.149.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/loslib.c lua-5.3.5/src/loslib.c 2c2 < ** $Id: loslib.c,v 1.65 2016/07/18 17:58:58 roberto Exp $ --- > ** $Id: loslib.c,v 1.65.1.1 2017/04/19 17:29:57 roberto Exp $ 296c296,297 < luaL_error(L, "time result cannot be represented in this installation"); --- > return luaL_error(L, > "time result cannot be represented in this installation"); 343c344,345 < luaL_error(L, "time result cannot be represented in this installation"); --- > return luaL_error(L, > "time result cannot be represented in this installation"); diff -r lua-5.3.4/src/lparser.c lua-5.3.5/src/lparser.c 2c2 < ** $Id: lparser.c,v 2.155 2016/08/01 19:51:24 roberto Exp $ --- > ** $Id: lparser.c,v 2.155.1.2 2017/04/29 18:11:40 roberto Exp $ 1395c1395 < skipnoopstat(ls); /* skip other no-op statements */ --- > while (testnext(ls, ';')) {} /* skip colons */ diff -r lua-5.3.4/src/lparser.h lua-5.3.5/src/lparser.h 2c2 < ** $Id: lparser.h,v 1.76 2015/12/30 18:16:13 roberto Exp $ --- > ** $Id: lparser.h,v 1.76.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lprefix.h lua-5.3.5/src/lprefix.h 2c2 < ** $Id: lprefix.h,v 1.2 2014/12/29 16:54:13 roberto Exp $ --- > ** $Id: lprefix.h,v 1.2.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lstate.c lua-5.3.5/src/lstate.c 2c2 < ** $Id: lstate.c,v 2.133 2015/11/13 12:16:51 roberto Exp $ --- > ** $Id: lstate.c,v 2.133.1.1 2017/04/19 17:39:34 roberto Exp $ diff -r lua-5.3.4/src/lstate.h lua-5.3.5/src/lstate.h 2c2 < ** $Id: lstate.h,v 2.133 2016/12/22 13:08:50 roberto Exp $ --- > ** $Id: lstate.h,v 2.133.1.1 2017/04/19 17:39:34 roberto Exp $ 28a29,46 > ** > ** Moreover, there is another set of lists that control gray objects. > ** These lists are linked by fields 'gclist'. (All objects that > ** can become gray have such a field. The field is not the same > ** in all objects, but it always has this name.) Any gray object > ** must belong to one of these lists, and all objects in these lists > ** must be gray: > ** > ** 'gray': regular gray objects, still waiting to be visited. > ** 'grayagain': objects that must be revisited at the atomic phase. > ** That includes > ** - black objects got in a write barrier; > ** - all kinds of weak tables during propagation phase; > ** - all threads. > ** 'weak': tables with weak values to be cleared; > ** 'ephemeron': ephemeron tables with white->white entries; > ** 'allweak': tables with weak keys and/or weak values to be cleared. > ** The last three lists are used only during the atomic phase. diff -r lua-5.3.4/src/lstring.c lua-5.3.5/src/lstring.c 2c2 < ** $Id: lstring.c,v 2.56 2015/11/23 11:32:51 roberto Exp $ --- > ** $Id: lstring.c,v 2.56.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lstring.h lua-5.3.5/src/lstring.h 2c2 < ** $Id: lstring.h,v 1.61 2015/11/03 15:36:01 roberto Exp $ --- > ** $Id: lstring.h,v 1.61.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lstrlib.c lua-5.3.5/src/lstrlib.c 2c2 < ** $Id: lstrlib.c,v 1.254 2016/12/22 13:08:50 roberto Exp $ --- > ** $Id: lstrlib.c,v 1.254.1.1 2017/04/19 17:29:57 roberto Exp $ 882c882 < luaL_error(L, "modifiers for format '%%a'/'%%A' not implemented"); --- > return luaL_error(L, "modifiers for format '%%a'/'%%A' not implemented"); 1202,1203c1202,1203 < luaL_error(h->L, "integral size (%d) out of limits [1,%d]", < sz, MAXINTSIZE); --- > return luaL_error(h->L, "integral size (%d) out of limits [1,%d]", > sz, MAXINTSIZE); diff -r lua-5.3.4/src/ltable.c lua-5.3.5/src/ltable.c 2c2 < ** $Id: ltable.c,v 2.118 2016/11/07 12:38:35 roberto Exp $ --- > ** $Id: ltable.c,v 2.118.1.4 2018/06/08 16:22:51 roberto Exp $ 226c226,228 < for (i = 0, twotoi = 1; *pna > twotoi / 2; i++, twotoi *= 2) { --- > for (i = 0, twotoi = 1; > twotoi > 0 && *pna > twotoi / 2; > i++, twotoi *= 2) { 332a335,346 > typedef struct { > Table *t; > unsigned int nhsize; > } AuxsetnodeT; > > > static void auxsetnode (lua_State *L, void *ud) { > AuxsetnodeT *asn = cast(AuxsetnodeT *, ud); > setnodevector(L, asn->t, asn->nhsize); > } > > 336a351 > AuxsetnodeT asn; 343c358,362 < setnodevector(L, t, nhsize); --- > asn.t = t; asn.nhsize = nhsize; > if (luaD_rawrunprotected(L, auxsetnode, &asn) != LUA_OK) { /* mem. error? */ > setarrayvector(L, t, oldasize); /* array back to its original size */ > luaD_throw(L, LUA_ERRMEM); /* rethrow memory error */ > } 613,614c632,633 < static int unbound_search (Table *t, unsigned int j) { < unsigned int i = j; /* i is zero or a present index */ --- > static lua_Unsigned unbound_search (Table *t, lua_Unsigned j) { > lua_Unsigned i = j; /* i is zero or a present index */ 619c638 < if (j > cast(unsigned int, MAX_INT)/2) { /* overflow? */ --- > if (j > l_castS2U(LUA_MAXINTEGER) / 2) { /* overflow? */ 629c648 < unsigned int m = (i+j)/2; --- > lua_Unsigned m = (i+j)/2; 641c660 < int luaH_getn (Table *t) { --- > lua_Unsigned luaH_getn (Table *t) { diff -r lua-5.3.4/src/ltable.h lua-5.3.5/src/ltable.h 2c2 < ** $Id: ltable.h,v 2.23 2016/12/22 13:08:50 roberto Exp $ --- > ** $Id: ltable.h,v 2.23.1.2 2018/05/24 19:39:05 roberto Exp $ 57c57 < LUAI_FUNC int luaH_getn (Table *t); --- > LUAI_FUNC lua_Unsigned luaH_getn (Table *t); diff -r lua-5.3.4/src/ltablib.c lua-5.3.5/src/ltablib.c 2c2 < ** $Id: ltablib.c,v 1.93 2016/02/25 19:41:54 roberto Exp $ --- > ** $Id: ltablib.c,v 1.93.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/ltm.c lua-5.3.5/src/ltm.c 2c2 < ** $Id: ltm.c,v 2.38 2016/12/22 13:08:50 roberto Exp $ --- > ** $Id: ltm.c,v 2.38.1.1 2017/04/19 17:39:34 roberto Exp $ diff -r lua-5.3.4/src/ltm.h lua-5.3.5/src/ltm.h 2c2 < ** $Id: ltm.h,v 2.22 2016/02/26 19:20:15 roberto Exp $ --- > ** $Id: ltm.h,v 2.22.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lua.c lua-5.3.5/src/lua.c 2c2 < ** $Id: lua.c,v 1.230 2017/01/12 17:14:26 roberto Exp $ --- > ** $Id: lua.c,v 1.230.1.1 2017/04/19 17:29:57 roberto Exp $ 141c141 < " -l name require library 'name'\n" --- > " -l name require library 'name' into global 'name'\n" diff -r lua-5.3.4/src/lua.h lua-5.3.5/src/lua.h 2c2 < ** $Id: lua.h,v 1.332 2016/12/22 15:51:20 roberto Exp $ --- > ** $Id: lua.h,v 1.332.1.2 2018/06/13 16:58:17 roberto Exp $ 22c22 < #define LUA_VERSION_RELEASE "4" --- > #define LUA_VERSION_RELEASE "5" 26c26 < #define LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2017 Lua.org, PUC-Rio" --- > #define LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2018 Lua.org, PUC-Rio" 463c463 < * Copyright (C) 1994-2017 Lua.org, PUC-Rio. --- > * Copyright (C) 1994-2018 Lua.org, PUC-Rio. diff -r lua-5.3.4/src/luac.c lua-5.3.5/src/luac.c 2c2 < ** $Id: luac.c,v 1.75 2015/03/12 01:58:27 lhf Exp $ --- > ** $Id: luac.c,v 1.76 2018/06/19 01:32:02 lhf Exp $ 209c209 < ** $Id: luac.c,v 1.75 2015/03/12 01:58:27 lhf Exp $ --- > ** $Id: luac.c,v 1.76 2018/06/19 01:32:02 lhf Exp $ 350a351 > case OP_MOD: diff -r lua-5.3.4/src/luaconf.h lua-5.3.5/src/luaconf.h 2c2 < ** $Id: luaconf.h,v 1.259 2016/12/22 13:08:50 roberto Exp $ --- > ** $Id: luaconf.h,v 1.259.1.1 2017/04/19 17:29:57 roberto Exp $ 623a624,630 > @@ lua_pointer2str converts a pointer to a readable string in a > ** non-specified way. > */ > #define lua_pointer2str(buff,sz,p) l_sprintf(buff,sz,"%p",p) > > > /* diff -r lua-5.3.4/src/lualib.h lua-5.3.5/src/lualib.h 2c2 < ** $Id: lualib.h,v 1.45 2017/01/12 17:14:26 roberto Exp $ --- > ** $Id: lualib.h,v 1.45.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lundump.c lua-5.3.5/src/lundump.c 2c2 < ** $Id: lundump.c,v 2.44 2015/11/02 16:09:30 roberto Exp $ --- > ** $Id: lundump.c,v 2.44.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lundump.h lua-5.3.5/src/lundump.h 2c2 < ** $Id: lundump.h,v 1.45 2015/09/08 15:41:05 roberto Exp $ --- > ** $Id: lundump.h,v 1.45.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lutf8lib.c lua-5.3.5/src/lutf8lib.c 2c2 < ** $Id: lutf8lib.c,v 1.16 2016/12/22 13:08:50 roberto Exp $ --- > ** $Id: lutf8lib.c,v 1.16.1.1 2017/04/19 17:29:57 roberto Exp $ 174c174 < luaL_error(L, "initial position is a continuation byte"); --- > return luaL_error(L, "initial position is a continuation byte"); diff -r lua-5.3.4/src/lvm.c lua-5.3.5/src/lvm.c 2c2 < ** $Id: lvm.c,v 2.268 2016/02/05 19:59:14 roberto Exp $ --- > ** $Id: lvm.c,v 2.268.1.1 2017/04/19 17:39:34 roberto Exp $ diff -r lua-5.3.4/src/lvm.h lua-5.3.5/src/lvm.h 2c2 < ** $Id: lvm.h,v 2.41 2016/12/22 13:08:50 roberto Exp $ --- > ** $Id: lvm.h,v 2.41.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lzio.c lua-5.3.5/src/lzio.c 2c2 < ** $Id: lzio.c,v 1.37 2015/09/08 15:41:05 roberto Exp $ --- > ** $Id: lzio.c,v 1.37.1.1 2017/04/19 17:20:42 roberto Exp $ diff -r lua-5.3.4/src/lzio.h lua-5.3.5/src/lzio.h 2c2 < ** $Id: lzio.h,v 1.31 2015/09/08 15:41:05 roberto Exp $ --- > ** $Id: lzio.h,v 1.31.1.1 2017/04/19 17:20:42 roberto Exp $