SF.net SVN: geany: [947] trunk/src
ntrel at users.sourceforge.net
ntrel at xxxxx
Mon Oct 30 11:49:49 UTC 2006
Revision: 947
http://svn.sourceforge.net/geany/?rev=947&view=rev
Author: ntrel
Date: 2006-10-30 03:49:35 -0800 (Mon, 30 Oct 2006)
Log Message:
-----------
Fix sign comparison warnings.
Modified Paths:
--------------
trunk/src/document.c
trunk/src/encodings.c
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c 2006-10-29 14:44:04 UTC (rev 946)
+++ trunk/src/document.c 2006-10-30 11:49:35 UTC (rev 947)
@@ -640,7 +640,7 @@
/* 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.");
Modified: trunk/src/encodings.c
===================================================================
--- trunk/src/encodings.c 2006-10-29 14:44:04 UTC (rev 946)
+++ trunk/src/encodings.c 2006-10-30 11:49:35 UTC (rev 947)
@@ -346,7 +346,7 @@
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)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list