"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib-lua/test-lua.c" between
dovecot-2.3.16.tar.gz and dovecot-2.3.17.tar.gz

About: Dovecot is an IMAP and POP3 server, written with security primarily in mind.

test-lua.c  (dovecot-2.3.16):test-lua.c  (dovecot-2.3.17)
skipping to change at line 441 skipping to change at line 441
for (i = 0; i < N_ELEMENTS(str_tests); i++) { for (i = 0; i < N_ELEMENTS(str_tests); i++) {
lua_pushstring(script->L, str_tests[i].input); lua_pushstring(script->L, str_tests[i].input);
check_tointegerx_compat(script->L, str_tests[i].isnum, FALSE, check_tointegerx_compat(script->L, str_tests[i].isnum, FALSE,
str_tests[i].output); str_tests[i].output);
} }
for (i = 0; i < N_ELEMENTS(num_tests); i++) { for (i = 0; i < N_ELEMENTS(num_tests); i++) {
bool isint; bool isint;
/* See lua_isinteger() comment in dlua-compat.h */ /* See lua_isinteger() comment in dlua-compat.h */
#if LUA_VERSION_NUM == 503 #if LUA_VERSION_NUM >= 503
isint = FALSE; isint = FALSE;
#else #else
isint = num_tests[i].isnum; isint = num_tests[i].isnum;
#endif #endif
lua_pushnumber(script->L, num_tests[i].input); lua_pushnumber(script->L, num_tests[i].input);
check_tointegerx_compat(script->L, num_tests[i].isnum, check_tointegerx_compat(script->L, num_tests[i].isnum,
isint, isint,
num_tests[i].output); num_tests[i].output);
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)