From 018b33696be67c97ef58a80a7503e79b22a446ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Thu, 2 Jan 2014 21:37:44 +0000 Subject: [PATCH] [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 --- main/gbx/gbx_value.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/gbx/gbx_value.c b/main/gbx/gbx_value.c index 7c85eb143..4dcded3b8 100644 --- a/main/gbx/gbx_value.c +++ b/main/gbx/gbx_value.c @@ -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))) {