Explorar o código

* fixed "nil pointer assignment" error in huge memory model

git-svn-id: trunk@31502 -
nickysn %!s(int64=10) %!d(string=hai) anos
pai
achega
1264eaf8c6
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      rtl/msdos/prt0comn.asm

+ 5 - 0
rtl/msdos/prt0comn.asm

@@ -491,8 +491,13 @@ int_number:
 %ifndef __TINY__
         global FPC_CHECK_NULLAREA
 FPC_CHECK_NULLAREA:
+%ifdef __HUGE__
+        mov ax, DGROUP
+        mov es, ax
+%else
         push ds
         pop es
+%endif
         xor di, di
         mov cx, 32
         mov al, 1