[geany/geany] 916b65: Fix sign comparison warning
Nick Treleaven
git-noreply at xxxxx
Sun Apr 27 15:38:37 UTC 2014
Branch: refs/heads/master
Author: Nick Treleaven <nick.treleaven at btinternet.com>
Committer: Nick Treleaven <nick.treleaven at btinternet.com>
Date: Sun, 27 Apr 2014 15:38:37 UTC
Commit: 916b65b661a505a51f45a6169b7798067a98e76e
https://github.com/geany/geany/commit/916b65b661a505a51f45a6169b7798067a98e76e
Log Message:
-----------
Fix sign comparison warning
Modified Paths:
--------------
src/win32.c
Modified: src/win32.c
3 lines changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -435,7 +435,8 @@ gchar *win32_show_document_save_as_dialog(GtkWindow *parent, const gchar *title,
n = MultiByteToWideChar(CP_UTF8, 0, DOC_FILENAME(doc), -1, w_file, G_N_ELEMENTS(w_file));
/* If creating a new file name, convert and append the extension if any */
- if (! doc->file_name && doc->file_type && doc->file_type->extension && n + 1 < G_N_ELEMENTS(w_file))
+ if (! doc->file_name && doc->file_type && doc->file_type->extension &&
+ n + 1 < (int)G_N_ELEMENTS(w_file))
{
w_file[n - 1] = L'.';
MultiByteToWideChar(CP_UTF8, 0, doc->file_type->extension, -1, &w_file[n],
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list