]> granicus.if.org Git - php/commitdiff
Silence warnings.
authorIlia Alshanetsky <iliaa@php.net>
Thu, 30 Jun 2005 00:07:42 +0000 (00:07 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 30 Jun 2005 00:07:42 +0000 (00:07 +0000)
ext/pdo_pgsql/pgsql_driver.c

index 0e17aaf7a773fb7a135aaf3eefcc88a716f47def..02106384c4868e0143555aef1950a10b9b3b0fae 100644 (file)
@@ -214,7 +214,7 @@ static char *pdo_pgsql_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned
 
        /* TODO: if name != NULL, pull out last value for that sequence/column */
 
-       *len = spprintf(&id, 0, "%ld", H->pgoid);
+       *len = spprintf(&id, 0, "%ld", (long) H->pgoid);
        return id;
 }