Skip to content

Commit 798bc09

Browse files
committedNov 14, 2016
Fix conversion from WKB to string in postgres provider (follow up d729951)
1 parent 1f81a7c commit 798bc09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2499,7 +2499,7 @@ void QgsPostgresProvider::appendGeomParam( const QgsGeometry& geom, QStringList
24992499

25002500
QScopedPointer<QgsGeometry> convertedGeom( convertToProviderType( geom ) );
25012501
QByteArray wkb( convertedGeom ? convertedGeom->exportToWkb() : geom.exportToWkb() );
2502-
const char *buf = wkb.constData();
2502+
const unsigned char *buf = reinterpret_cast< const unsigned char * >( wkb.constData() );
25032503
int wkbSize = wkb.length();
25042504

25052505
for ( int i = 0; i < wkbSize; ++i )

0 commit comments

Comments
 (0)
Please sign in to comment.