Fix sign comparison warnings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@947 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
ff5e5cca37
commit
1844a2d051
@ -640,7 +640,7 @@ int document_open_file(gint idx, const gchar *filename, gint pos, gboolean reado
|
||||
/* check whether the size of the loaded data is equal to the size of the file in the filesystem */
|
||||
//size = strlen(data);
|
||||
size = strlen(data);
|
||||
if (size != st.st_size)
|
||||
if (size != (gsize) st.st_size)
|
||||
{
|
||||
gchar *warn_msg = _("The file \"%s\" could not opened properly and probably was truncated. "
|
||||
"Be aware that saving it can cause data loss.\nThe file was set to read-only.");
|
||||
|
@ -346,7 +346,7 @@ gchar *encodings_convert_to_utf8(const gchar *buffer, gsize size, gchar **used_e
|
||||
|
||||
for (i = 0; i < GEANY_ENCODINGS_MAX; i++)
|
||||
{
|
||||
if (i == encodings[GEANY_ENCODING_NONE].idx) continue;
|
||||
if (i == (guint) encodings[GEANY_ENCODING_NONE].idx) continue;
|
||||
|
||||
if (check_current)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user