Explorar el Código

[Minor] Distinguish nil from none

tags/3.0
Vsevolod Stakhov hace 3 años
padre
commit
bd58d2b931
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/lua/lua_url.c

+ 2
- 2
src/lua/lua_url.c Ver fichero

@@ -1252,7 +1252,7 @@ lua_url_cbdata_fill_exclude_include (lua_State *L,
}
}
}
else if (pos_arg_type == LUA_TNIL) {
else if (pos_arg_type == LUA_TNIL || pos_arg_type == LUA_TNONE) {
/* Include all flags */
include_flags_mask = ~0U;
}
@@ -1280,7 +1280,7 @@ lua_url_cbdata_fill_exclude_include (lua_State *L,
}
}
}
else if (pos_arg_type == LUA_TNIL) {
else if (pos_arg_type == LUA_TNIL || pos_arg_type == LUA_TNONE) {
/* Empty all exclude flags */
exclude_flags_mask = 0U;
}

Cargando…
Cancelar
Guardar