Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sat, 09 Jun 2012 17:47:19 Commit: e74438ec97708f832ad0bd8df623ced8d0e81f87 https://github.com/geany/geany-plugins/commit/e74438ec97708f832ad0bd8df623ce...
Log Message: ----------- geanylua: Fix various integer size issues
Modified Paths: -------------- geanylua/glspi_app.c geanylua/glspi_sci.c
Modified: geanylua/glspi_app.c 4 files changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -109,7 +109,7 @@ static gint glspi_xsel(lua_State* L) { if (lua_gettop(L)>0) { if (lua_isstring(L,1)) { - guint len; + gsize len; const gchar*txt=lua_tolstring(L,1,&len); gtk_clipboard_set_text(CLIPBOARD,txt,len); } else { @@ -580,7 +580,7 @@ static gint glspi_keygrab(lua_State* L) if (prompt && doc && doc->is_valid ) { gint fvl=scintilla_send_message(doc->editor->sci,SCI_GETFIRSTVISIBLELINE, 0,0); gint pos=sci_get_position_from_line(doc->editor->sci, fvl+1); - scintilla_send_message(doc->editor->sci,SCI_CALLTIPSHOW,pos+3, (gint)prompt); + scintilla_send_message(doc->editor->sci,SCI_CALLTIPSHOW,pos+3, (glong)prompt); } gdk_window_add_filter(main_widgets->window->window, keygrab_cb, &km); do {
Modified: geanylua/glspi_sci.c 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -467,7 +467,7 @@ static gint glspi_copy(lua_State* L) if (!lua_isstring(L,1)) {return FAIL_STRING_ARG(1);} content=lua_tostring(L,1); len=strlen(content); - if (len) { scintilla_send_message(doc->editor->sci,SCI_COPYTEXT,len,(gint)content); } + if (len) { scintilla_send_message(doc->editor->sci,SCI_COPYTEXT,len,(glong)content); } push_number(L, len); return 1; default:
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
plugins-commits@lists.geany.org