mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 10:19:12 +02:00
lazutils: added workaround for compiler bug, see bug #23868
git-svn-id: trunk@40237 -
This commit is contained in:
parent
f48c70a01c
commit
60d3756a53
@ -68,11 +68,11 @@ type
|
|||||||
FFrameSize : LongInt;
|
FFrameSize : LongInt;
|
||||||
FFrameCache : PByte;
|
FFrameCache : PByte;
|
||||||
|
|
||||||
FOpen: boolean;
|
|
||||||
FName: string;
|
FName: string;
|
||||||
FStream: TStream;
|
FStream: TStream;
|
||||||
FOwnedStream: boolean;
|
|
||||||
FBase,FStoredSize,FPosit: Longint;
|
FBase,FStoredSize,FPosit: Longint;
|
||||||
|
FOwnedStream: boolean;
|
||||||
|
FOpen: boolean;
|
||||||
FUsed: boolean;
|
FUsed: boolean;
|
||||||
function GetFilePos: longint;
|
function GetFilePos: longint;
|
||||||
function GetFileSize: longint;
|
function GetFileSize: longint;
|
||||||
@ -364,9 +364,13 @@ const
|
|||||||
*
|
*
|
||||||
******************************************************************)
|
******************************************************************)
|
||||||
procedure TT_Done_Stream( stream : TT_Stream );
|
procedure TT_Done_Stream( stream : TT_Stream );
|
||||||
|
var
|
||||||
|
p: Pointer;
|
||||||
begin
|
begin
|
||||||
if stream.z = nil then exit;
|
if stream.z = nil then exit;
|
||||||
TFreeTypeStream(stream.z).FUsed := false;
|
{$HINT workaround for bug 23868 when compiling with -O2}
|
||||||
|
p:=stream.z;
|
||||||
|
TFreeTypeStream(p).FOpen := false;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
(*******************************************************************
|
(*******************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user