[Tile-serving] [osm2pgsql] explicit type conversions to reduce MSVC warnings (#484)
Paul Norman
notifications at github.com
Thu Oct 29 19:48:41 UTC 2015
> @@ -25,10 +25,10 @@ void escape(const std::string &src, std::string& dst);
>
>
> inline void pgsql_CopyData(const char *context, PGconn *sql_conn, const char *sql) {
> - pgsql_CopyData(context, sql_conn, sql, strlen(sql));
> + pgsql_CopyData(context, sql_conn, sql, (int) strlen(sql));
the length goes to `PQputCopyData(PGconn *conn, const char *buffer, int nbytes);` so we're fine
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/484/files#r43435204
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20151029/784144fa/attachment-0001.html>
More information about the Tile-serving
mailing list