mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 09:02:22 +01:00 
			
		
		
		
	* take SizeOfItem() properly into account in T(Tag)HashSet
git-svn-id: trunk@32044 -
This commit is contained in:
		
							parent
							
								
									dff35e7d03
								
							
						
					
					
						commit
						67b958bb32
					
				@ -2900,7 +2900,7 @@ end;
 | 
			
		||||
          end
 | 
			
		||||
        else
 | 
			
		||||
          begin
 | 
			
		||||
            New(Result);
 | 
			
		||||
            GetMem(Result,SizeOfItem);
 | 
			
		||||
            if FOwnsKeys then
 | 
			
		||||
            begin
 | 
			
		||||
              GetMem(Result^.Key, KeyLen);
 | 
			
		||||
@ -3007,7 +3007,7 @@ end;
 | 
			
		||||
          end
 | 
			
		||||
        else
 | 
			
		||||
          begin
 | 
			
		||||
            New(Result);
 | 
			
		||||
            Getmem(Result,SizeOfItem);
 | 
			
		||||
            if FOwnsKeys then
 | 
			
		||||
            begin
 | 
			
		||||
              GetMem(Result^.Key, KeyLen);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user