DEADSOFTWARE

NativeInt -> NativeUInt for pointers
[d2df-sdl.git] / src / engine / e_input.pas
index 2a2f435de2c5d5c8ce606e87d9788292995dd766..269a1d17c85c81e277f6ffeaaca4f20a3cba179f 100644 (file)
@@ -192,14 +192,14 @@ function PollKeyboard(): Boolean;
 var
   Keys: PByte;
   NKeys: Integer;
-  i: NativeInt;
+  i: NativeUInt;
 begin
   Result := False;
   Keys := SDL_GetKeyboardState(@NKeys);
   if (Keys = nil) or (NKeys < 1) then
     Exit;
   for i := 0 to NKeys do
-    KeyBuffer[i] := ((PByte(NativeInt(Keys) + i)^) <> 0);
+    KeyBuffer[i] := ((PByte(NativeUInt(Keys) + i)^) <> 0);
   for i := NKeys to High(KeyBuffer) do
     KeyBuffer[i] := False;
 end;