mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	UPdate memset macro.
This commit is contained in:
		@@ -7,7 +7,7 @@
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (c) 1994, Regents of the University of California
 | 
			
		||||
 *
 | 
			
		||||
 * $Id: c.h,v 1.21 1997/09/18 17:06:21 momjian Exp $
 | 
			
		||||
 * $Id: c.h,v 1.22 1997/09/18 18:48:32 momjian Exp $
 | 
			
		||||
 *
 | 
			
		||||
 *-------------------------------------------------------------------------
 | 
			
		||||
 */
 | 
			
		||||
@@ -711,11 +711,11 @@ typedef struct Exception
 | 
			
		||||
									 */ \
 | 
			
		||||
										(len) <= 64) \
 | 
			
		||||
									{ \
 | 
			
		||||
										int32 *i = (int32 *)(start); \
 | 
			
		||||
										int32 *stop = (int32 *)((char *)(start) + (len)); \
 | 
			
		||||
										int32 *_i = (int32 *)(start); \
 | 
			
		||||
										int32 *_stop = (int32 *)((char *)(start) + (len)); \
 | 
			
		||||
										\
 | 
			
		||||
										while (i < stop) \
 | 
			
		||||
											*i++ = 0; \
 | 
			
		||||
										while (_i < _stop) \
 | 
			
		||||
											*_i++ = 0; \
 | 
			
		||||
									} \
 | 
			
		||||
									else \
 | 
			
		||||
										memset((start), (val), (len)); \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user