mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 10:39:40 +01:00 
			
		
		
		
	* evaluate typecasts of const pointers to ordinals inline ('merged')
This commit is contained in:
		
							parent
							
								
									736a92a945
								
							
						
					
					
						commit
						ee9ebaa3ee
					
				@ -971,6 +971,15 @@ implementation
 | 
			
		||||
                   pass_1:=hp;
 | 
			
		||||
                   exit;
 | 
			
		||||
                end
 | 
			
		||||
              { constant pointer to ordinal }
 | 
			
		||||
              else if is_ordinal(resulttype) and
 | 
			
		||||
                (left.nodetype=pointerconstn) then
 | 
			
		||||
                begin
 | 
			
		||||
                   hp:=genordinalconstnode(tpointerconstnode(left).value,resulttype);
 | 
			
		||||
                   firstpass(hp);
 | 
			
		||||
                   pass_1:=hp;
 | 
			
		||||
                   exit;
 | 
			
		||||
                end
 | 
			
		||||
 | 
			
		||||
              {Are we typecasting an ordconst to a char?}
 | 
			
		||||
              else
 | 
			
		||||
@ -1191,7 +1200,10 @@ begin
 | 
			
		||||
end.
 | 
			
		||||
{
 | 
			
		||||
  $Log$
 | 
			
		||||
  Revision 1.19  2001-02-20 18:37:10  peter
 | 
			
		||||
  Revision 1.20  2001-02-21 11:49:50  jonas
 | 
			
		||||
    * evaluate typecasts of const pointers to ordinals inline ('merged')
 | 
			
		||||
 | 
			
		||||
  Revision 1.19  2001/02/20 18:37:10  peter
 | 
			
		||||
    * removed unused code
 | 
			
		||||
 | 
			
		||||
  Revision 1.18  2001/02/20 13:14:18  marco
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user