mirror of https://github.com/postgres/postgres.git
UPdate memset macro.
parent
ac9e73ee8a
commit
0f928c2d21
|
|
@ -7,7 +7,7 @@
|
||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* 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) \
|
(len) <= 64) \
|
||||||
{ \
|
{ \
|
||||||
int32 *i = (int32 *)(start); \
|
int32 *_i = (int32 *)(start); \
|
||||||
int32 *stop = (int32 *)((char *)(start) + (len)); \
|
int32 *_stop = (int32 *)((char *)(start) + (len)); \
|
||||||
\
|
\
|
||||||
while (i < stop) \
|
while (_i < _stop) \
|
||||||
*i++ = 0; \
|
*_i++ = 0; \
|
||||||
} \
|
} \
|
||||||
else \
|
else \
|
||||||
memset((start), (val), (len)); \
|
memset((start), (val), (len)); \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue