[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
This commit is contained in:
Laurent Carlier 2009-07-10 12:25:11 +00:00
parent a3d6ba73e5
commit 6b81473f65
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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';