mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 00:09:15 +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;
|
||||
FFrameCache : PByte;
|
||||
|
||||
FOpen: boolean;
|
||||
FName: string;
|
||||
FStream: TStream;
|
||||
FOwnedStream: boolean;
|
||||
FBase,FStoredSize,FPosit: Longint;
|
||||
FOwnedStream: boolean;
|
||||
FOpen: boolean;
|
||||
FUsed: boolean;
|
||||
function GetFilePos: longint;
|
||||
function GetFileSize: longint;
|
||||
@ -364,9 +364,13 @@ const
|
||||
*
|
||||
******************************************************************)
|
||||
procedure TT_Done_Stream( stream : TT_Stream );
|
||||
var
|
||||
p: Pointer;
|
||||
begin
|
||||
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;
|
||||
|
||||
(*******************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user