mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[lua] cast
This commit is contained in:
parent
d6be6dd505
commit
89952dfec4
@ -160,7 +160,7 @@ l_current_document(LS)
|
|||||||
{
|
{
|
||||||
if (lua_ses && lua_ses->doc_view && lua_ses->doc_view->document) {
|
if (lua_ses && lua_ses->doc_view && lua_ses->doc_view->document) {
|
||||||
struct cache_entry *cached = lua_ses->doc_view->document->cached;
|
struct cache_entry *cached = lua_ses->doc_view->document->cached;
|
||||||
struct fragment *f = cached ? cached->frag.next : NULL;
|
struct fragment *f = (struct fragment *)(cached ? cached->frag.next : NULL);
|
||||||
|
|
||||||
if (f && f->length) {
|
if (f && f->length) {
|
||||||
lua_pushlstring(S, f->data, f->length);
|
lua_pushlstring(S, f->data, f->length);
|
||||||
@ -371,7 +371,7 @@ struct lua_dlg_data {
|
|||||||
static void
|
static void
|
||||||
dialog_run_lua(void *data_)
|
dialog_run_lua(void *data_)
|
||||||
{
|
{
|
||||||
struct lua_dlg_data *data = data_;
|
struct lua_dlg_data *data = (struct lua_dlg_data *)data_;
|
||||||
lua_State *s = data->state;
|
lua_State *s = data->state;
|
||||||
|
|
||||||
lua_pushstring(s, data->cat);
|
lua_pushstring(s, data->cat);
|
||||||
@ -447,7 +447,7 @@ struct lua_xdialog_data {
|
|||||||
static void
|
static void
|
||||||
xdialog_run_lua(void *data_)
|
xdialog_run_lua(void *data_)
|
||||||
{
|
{
|
||||||
struct lua_xdialog_data *data = data_;
|
struct lua_xdialog_data *data = (struct lua_xdialog_data *)data_;
|
||||||
lua_State *s = data->state;
|
lua_State *s = data->state;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user