Skip to content

Commit 00a9378

Browse files
committed
fix returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
1 parent f3ee195 commit 00a9378

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lisp/c/sysfunc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ register pointer p;
113113
#if Solaris2
114114
if ((eusinteger_t)p<(eusinteger_t)_end) return(NULL);
115115
#elif sun3 || sun4 || news || (i386 && (!Cygwin && !Darwin)) || alpha || mips /* Cygwin does not have edata */
116-
if ((eusinteger_t)p<(eusinteger_t)edata) return(NULL);
116+
if ((eusinteger_t)p<(eusinteger_t)edata) return((int)NULL);
117117
#endif
118118
#if sun4 || vax || i386
119-
if ((&ctx->stack[0]<=p) && (p<= &ctx->stack[MAXSTACK])) return(NULL);
119+
if (((pointer)(&ctx->stack[0])<=p) && (p<= (pointer)(&ctx->stack[MAXSTACK]))) return((int)NULL);
120120
#endif
121121
if (issymbol(p)) return((long int)NULL);
122122
#if (WORD_SIZE == 64)

0 commit comments

Comments
 (0)