[INTERPRETER]

* BUG: Fix a crash when using CStr() on an object having a conversion 
  function.


git-svn-id: svn://localhost/gambas/trunk@6056 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2014-01-02 21:37:44 +00:00
parent e0469073ab
commit 018b33696b

View file

@ -754,7 +754,7 @@ __OBJECT:
if (class->has_convert)
{
void *unref = value->_object.object;
bool old_type = value->type;
TYPE old_type = value->type;
if (!((*class->convert)(value->_object.object, type, value)))
{