Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 30 Nov 2015 18:25:24 UTC Commit: 27628c0028fe15fc89e95c885d4981ce86698614 https://github.com/geany/geany/commit/27628c0028fe15fc89e95c885d4981ce866986...
Log Message: ----------- Merge pull request #773 from zhekov/pointer-from-integer
Fix warnings about casting pointer from/to different size integer
Modified Paths: -------------- src/sciwrappers.c src/win32.c tagmanager/src/tm_workspace.c
Modified: src/sciwrappers.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -970,7 +970,7 @@ void sci_get_text_range(ScintillaObject *sci, gint start, gint end, gchar *text) tr.chrg.cpMin = start; tr.chrg.cpMax = end; tr.lpstrText = text; - SSM(sci, SCI_GETTEXTRANGE, 0, (long) &tr); + SSM(sci, SCI_GETTEXTRANGE, 0, (sptr_t) &tr); }
Modified: src/win32.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -816,7 +816,7 @@ static FILE *open_std_handle(DWORD handle, const char *mode) if (hConHandle == -1) { gchar *err = g_win32_error_message(GetLastError()); - g_warning("_open_osfhandle(%ld, _O_TEXT) failed: %s", (long)lStdHandle, err); + g_warning("_open_osfhandle(handle(%ld), _O_TEXT) failed: %s", (long)handle, err); g_free(err); return NULL; }
Modified: tagmanager/src/tm_workspace.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -398,7 +398,7 @@ static guint tm_file_inode_hash(gconstpointer key) #ifdef TM_DEBUG g_message ("Hash for '%s' is '%d'\n", filename, file_stat.st_ino); #endif - return g_direct_hash ((gpointer)(gulong)file_stat.st_ino); + return g_direct_hash ((gpointer)(intptr_t)file_stat.st_ino); } else { return 0; }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).