Browse Source

* treat the len parameter to the i8086 versions of IndexByte and IndexWord as
unsigned, like the other platforms do

git-svn-id: trunk@31954 -

nickysn 9 years ago
parent
commit
792b7e67be
1 changed files with 2 additions and 2 deletions
  1. 2 2
      rtl/i8086/i8086.inc

+ 2 - 2
rtl/i8086/i8086.inc

@@ -167,7 +167,7 @@ asm
   mov bx, sp
   mov cx, ss:[bx + 4 + extra_param_offset]  // len
   or cx, cx
-  jle @@NotFound
+  jz @@NotFound
 {$ifdef FPC_X86_DATA_NEAR}
   mov di, ss:[bx + 6 + extra_param_offset]  // @buf
   mov ax, ds
@@ -201,7 +201,7 @@ asm
   mov bx, sp
   mov cx, ss:[bx + 4 + extra_param_offset]  // len
   or cx, cx
-  jle @@NotFound
+  jz @@NotFound
 {$ifdef FPC_X86_DATA_NEAR}
   mov di, ss:[bx + 6 + extra_param_offset]  // @buf
   mov ax, ds