*avoided warnings; *updated macos binary.

This commit is contained in:
Wang Renxin 2016-07-03 18:16:05 +08:00
parent 70716f038e
commit a4527fcb99
3 changed files with 3 additions and 3 deletions

View File

@ -15914,7 +15914,7 @@ static int _std_input(mb_interpreter_t* s, void** l) {
obj->data.variable->data->data.string = _HEAP_CHAR_BUF(buf);
} while(0);
#else /* MB_CP_VC && MB_ENABLE_UNICODE */
obj->data.variable->data->data.string = mb_memdup(line, len + 1);
obj->data.variable->data->data.string = mb_memdup(line, (unsigned)(len + 1));
#endif /* MB_CP_VC && MB_ENABLE_UNICODE */
ast = ast->next;
} else {

Binary file not shown.

View File

@ -214,7 +214,7 @@ static void _tidy_mem_pool(bool_t force) {
return;
for(i = 0; i < pool_count; i++) {
while(s = pool[i].stack) {
while((s = pool[i].stack)) {
pool[i].stack = (char*)_POOL_NODE_NEXT(s);
_POOL_NODE_FREE(s);
}
@ -293,7 +293,7 @@ static void _close_mem_pool(void) {
return;
for(i = 0; i < pool_count; i++) {
while(s = pool[i].stack) {
while((s = pool[i].stack)) {
pool[i].stack = (char*)_POOL_NODE_NEXT(s);
_POOL_NODE_FREE(s);
}