From f777249d8a7cb0475f4314a0b7a9f8b4a98c1d25 Mon Sep 17 00:00:00 2001 From: paladin-t Date: Thu, 28 Jan 2016 14:24:54 +0800 Subject: [PATCH] *avoided warnings when compiling for 64bit system. --- core/my_basic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/my_basic.c b/core/my_basic.c index d379b0d..3651570 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -11270,11 +11270,11 @@ int mb_set_inputer(struct mb_interpreter_t* s, mb_input_func_t p) { int mb_gc(struct mb_interpreter_t* s, int_t* collected) { /* Trigger GC */ - int_t diff = _mb_allocated; + int_t diff = (int_t)_mb_allocated; _gc_collect_garbage(s, 1); - diff = _mb_allocated - diff; + diff = (int_t)(_mb_allocated - diff); if(collected) *collected = diff;