소스 검색

* fixed the far pointer size not being updated after reading the near/far type modifier, which caused far pointers to be allocated only 2 bytes

git-svn-id: trunk@24554 -
nickysn 12 년 전
부모
커밋
abeb2a3aaa
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      compiler/pdecl.pas

+ 1 - 0
compiler/pdecl.pas

@@ -730,6 +730,7 @@ implementation
                            tpointerdef(hdef).x86pointertyp:=x86pt_near;
                          consume(_SEMICOLON);
                        end;
+                    tpointerdef(hdef).update_savesize;
 {$else x86}
                     { Previous versions of FPC support declaring a pointer as
                       far even on non-x86 platforms.