Browse Source

* use SizeInt instead of PtrInt for the stack area size (this both matches the declaration in TypInfo as well as enough on 16-bit targets like i8086)

Sven/Sarah Barth 1 year ago
parent
commit
a4121d2201
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/ncgrtti.pas

+ 1 - 1
compiler/ncgrtti.pas

@@ -267,7 +267,7 @@ implementation
                       maybe_add_comment(tcb,#9'param count');
                       tcb.emit_ord_const(def.paras.count,u16inttype);
                       maybe_add_comment(tcb,#9'caller args size');
-                      tcb.emit_ord_const(def.callerargareasize,ptrsinttype);
+                      tcb.emit_ord_const(def.callerargareasize,sizesinttype);
                       maybe_add_comment(tcb,#9'invoke helper');
                       if def.invoke_helper=nil then
                         tcb.emit_tai(Tai_const.Create_nil_dataptr,voidcodepointertype)