Update language/src/vm.c - Check RING_MSDOS
@@ -271,7 +271,11 @@ RING_API void ring_vm_loadcode ( VM *pVM )
** eval() will check if there is a need to reallocation or not
** This optimization increase the performance of applications that uses eval()
*/
+ #if RING_MSDOS
+ nSize = ring_list_getsize(pVM->pCode) ;
+ #else
nSize = (RING_MAX(ring_list_getsize(pVM->pCode),RING_VM_MINVMINSTRUCTIONS))*RING_VM_EXTRASIZE ;
+ #endif
pVM->pByteCode = (ByteCode *) ring_calloc(nSize,sizeof(ByteCode));
for ( x = 1 ; x <= ring_list_getsize(pVM->pCode) ; x++ ) {
ring_vm_tobytecode(pVM,x);
