[svn:DBD-Pg] r13041 - DBD-Pg/trunk

[email protected]
Newsgroups gmane.comp.db.postgresql.dbdpg.cvs
Message-ID <[email protected]>
Author: turnstep
Date: Sun Jul 12 11:32:04 2009
New Revision: 13041

Modified:
   DBD-Pg/trunk/dbdimp.c

Log:
Casting fixes.


Modified: DBD-Pg/trunk/dbdimp.c
==============================================================================
--- DBD-Pg/trunk/dbdimp.c	(original)
+++ DBD-Pg/trunk/dbdimp.c	Sun Jul 12 11:32:04 2009
@@ -3363,10 +3363,10 @@
 					case PG_OID:
 					case PG_INT4:
 					case PG_INT2:
-						sv_setiv(sv, atol(value));
+						sv_setiv(sv, atol((char *)value));
 						break;
 					case PG_INT8:
-						sv_setnv(sv, atoll(value));
+						sv_setnv(sv, atoll((char *)value));
 						break;
 					default:
 						sv_setpvn(sv, (char *)value, value_len);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.