Author: cito
Date: Fri Jan 8 13:52:38 2016
New Revision: 702
Log:
Remove a compiler warning by casting properly
Modified:
trunk/module/pgmodule.c
Modified: trunk/module/pgmodule.c
==============================================================================
--- trunk/module/pgmodule.c Fri Jan 8 09:17:48 2016 (r701)
+++ trunk/module/pgmodule.c Fri Jan 8 13:52:38 2016 (r702)
@@ -1903,7 +1903,7 @@
}
to_length = 2*from_length + 1;
- if (to_length < from_length) /* overflow */
+ if (to_length < (size_t)from_length) /* overflow */
{
to_length = from_length;
from_length = (from_length - 1)/2;
@@ -4173,7 +4173,7 @@
}
to_length = 2*from_length + 1;
- if (to_length < from_length) /* overflow */
+ if (to_length < (size_t)from_length) /* overflow */
{
to_length = from_length;
from_length = (from_length - 1)/2;
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql