File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ win32_compute_revents (HANDLE h, int *p_sought)
149149 case FILE_TYPE_PIPE :
150150 if (!once_only )
151151 {
152- NtQueryInformationFile = (PNtQueryInformationFile )
152+ NtQueryInformationFile = (PNtQueryInformationFile )( void ( * )( void ))
153153 GetProcAddress (GetModuleHandleA ("ntdll.dll" ),
154154 "NtQueryInformationFile" );
155155 once_only = TRUE;
Original file line number Diff line number Diff line change 3838#include "compat/obstack.h"
3939
4040#define NCHAR (UCHAR_MAX + 1)
41- #define obstack_chunk_alloc xmalloc
41+ /* adapter for `xmalloc()`, which takes `size_t`, not `long` */
42+ static void * obstack_chunk_alloc (long size )
43+ {
44+ if (size < 0 )
45+ BUG ("Cannot allocate a negative amount: %ld" , size );
46+ return xmalloc (size );
47+ }
4248#define obstack_chunk_free free
4349
4450#define U (c ) ((unsigned char) (c))
You can’t perform that action at this time.
0 commit comments