mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 15:31:29 +01:00 
			
		
		
		
	* better set_to_set for setconst nodes
git-svn-id: trunk@6656 -
This commit is contained in:
		
							parent
							
								
									5b8dd4c004
								
							
						
					
					
						commit
						821e6abae1
					
				| @ -1153,13 +1153,6 @@ implementation | |||||||
|     function ttypeconvnode.typecheck_set_to_set : tnode; |     function ttypeconvnode.typecheck_set_to_set : tnode; | ||||||
|       begin |       begin | ||||||
|         result:=nil; |         result:=nil; | ||||||
|         { because is_equal only checks the basetype for sets we need to |  | ||||||
|           check here if we are loading a smallset into a normalset } |  | ||||||
|         if (resultdef.typ=setdef) and |  | ||||||
|            (left.resultdef.typ=setdef) and |  | ||||||
|            ((tsetdef(resultdef).setmax<>tsetdef(left.resultdef).setmax) or |  | ||||||
|             (tsetdef(resultdef).setbase<>tsetdef(left.resultdef).setbase)) then |  | ||||||
|           begin |  | ||||||
|         { constant sets can be converted by changing the type only } |         { constant sets can be converted by changing the type only } | ||||||
|         if (left.nodetype=setconstn) then |         if (left.nodetype=setconstn) then | ||||||
|          begin |          begin | ||||||
| @ -1169,7 +1162,6 @@ implementation | |||||||
|            exit; |            exit; | ||||||
|          end; |          end; | ||||||
|       end; |       end; | ||||||
|       end; |  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|     function ttypeconvnode.typecheck_pchar_to_string : tnode; |     function ttypeconvnode.typecheck_pchar_to_string : tnode; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 florian
						florian