From 6b81473f65f1bbed774eac63ade54c13e3cb7306 Mon Sep 17 00:00:00 2001 From: Laurent Carlier Date: Fri, 10 Jul 2009 12:25:11 +0000 Subject: [PATCH] [GB.DB.SQLITE2] * BUG: Fix some casting with gcc version 4.4.0 20090630 (prerelease) [GB.DB.SQLITE3] * BUG: Fix some casting with gcc version 4.4.0 20090630 (prerelease) git-svn-id: svn://localhost/gambas/trunk@2097 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.db.sqlite2/src/sqlitedataset.cpp | 4 ++-- gb.db.sqlite3/src/sqlitedataset.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gb.db.sqlite2/src/sqlitedataset.cpp b/gb.db.sqlite2/src/sqlitedataset.cpp index 5998c0d12..979b716c2 100644 --- a/gb.db.sqlite2/src/sqlitedataset.cpp +++ b/gb.db.sqlite2/src/sqlitedataset.cpp @@ -739,8 +739,8 @@ fType GetFieldType(const char *Type, unsigned int *length ) if ( rType == ft_String){ /* if a length has been defined it will be between ()*/ - _right = rindex(Type, ')'); - _left = index(Type, '('); + _right = (char *)rindex(Type, ')'); + _left = (char *)index(Type, '('); if (_right){ _right = '\0'; rTypeLen = atoi(_left + 1); diff --git a/gb.db.sqlite3/src/sqlitedataset.cpp b/gb.db.sqlite3/src/sqlitedataset.cpp index 639c12370..88056e7d8 100644 --- a/gb.db.sqlite3/src/sqlitedataset.cpp +++ b/gb.db.sqlite3/src/sqlitedataset.cpp @@ -1078,8 +1078,8 @@ fType GetFieldType(const char *Type, unsigned int *length) if (rType == ft_String) { /* if a length has been defined it will be between () */ - _right = rindex(Type, ')'); - _left = index(Type, '('); + _right = (char *)rindex(Type, ')'); + _left = (char *)index(Type, '('); if (_right) { _right = '\0';