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

Commitf509944

Browse files
committed
Fix cast for _open_osfhandle().
Tsutomu Yamada
1 parent7839d35 commitf509944

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/port/open.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
88
*
9-
* $PostgreSQL: pgsql/src/port/open.c,v 1.28 2009/06/11 14:49:15 momjian Exp $
9+
* $PostgreSQL: pgsql/src/port/open.c,v 1.29 2010/01/02 12:00:08 mha Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -124,7 +124,7 @@ pgwin32_open(const char *fileName, int fileFlags,...)
124124
}
125125

126126
/* _open_osfhandle will, on error, set errno accordingly */
127-
if ((fd=_open_osfhandle((long)h,fileFlags&O_APPEND))<0)
127+
if ((fd=_open_osfhandle((intptr_t)h,fileFlags&O_APPEND))<0)
128128
CloseHandle(h);/* will not affect errno */
129129
elseif (fileFlags& (O_TEXT |O_BINARY)&&
130130
_setmode(fd,fileFlags& (O_TEXT |O_BINARY))<0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp