X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/5b2abdfbf4211b6592cdd02b9507555a0ecbb04b..2acb89982f71719aec26ca16705bd2c0400a9550:/stdlib/l64a.c diff --git a/stdlib/l64a.c b/stdlib/l64a.c index c666bc6..32b904b 100644 --- a/stdlib/l64a.c +++ b/stdlib/l64a.c @@ -11,18 +11,28 @@ static char *rcsid = "$OpenBSD: l64a.c,v 1.3 1997/08/17 22:58:34 millert Exp $"; #include char * +#ifdef __LP64__ +l64a(v) + long v; +#else /* !__LP64__ */ l64a(value) long value; +#endif /* __LP64__ */ { static char buf[8]; +#ifdef __LP64__ + int value = v; +#endif /* __LP64__ */ char *s = buf; int digit; int i; +#ifndef __LP64__ if (value < 0) { errno = EINVAL; return(NULL); } +#endif /* __LP64__ */ for (i = 0; value != 0 && i < 6; i++) { digit = value & 0x3f;