Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf22ddf7

Browse files
committed
Add void * cast to MemSet to silence compiler, and add comment that we
already check for alignment.
1 parent7fb9893 commitf22ddf7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/include/c.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
1313
* Portions Copyright (c) 1994, Regents of the University of California
1414
*
15-
* $Id: c.h,v 1.153 2003/09/21 17:57:21 tgl Exp $
15+
* $Id: c.h,v 1.154 2003/10/11 19:53:45 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -604,7 +604,8 @@ typedef NameData *Name;
604604
#defineMemSet(start,val,len) \
605605
do \
606606
{ \
607-
int32 * _start = (int32 *) (start); \
607+
/* (void *) used because we check for alignment below */ \
608+
int32 * _start = (int32 *) (void *) (start); \
608609
int_val = (val); \
609610
Size_len = (len); \
610611
\

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp