pkgsrc/math/p5-Math-BigInteger/patches/patch-aa

24 lines
524 B
Text

$NetBSD: patch-aa,v 1.1.1.1 2001/04/27 23:16:31 jtb Exp $
--- bn.c.orig Wed Feb 7 20:53:14 2001
+++ bn.c
@@ -304,8 +304,8 @@
int i,j,v,z=0;
static char *hex="0123456789ABCDEF";
- if (a->neg) Fputc('-',fp);
- if (a->top == 0) Fputc('0',fp);
+ if (a->neg) fputc('-',fp);
+ if (a->top == 0) fputc('0',fp);
for (i=a->top-1; i >=0; i--)
{
for (j=BITS2-4; j >= 0; j-=4)
@@ -314,7 +314,7 @@
v=(a->d[i]>>j)&0x0f;
if (z || (v != 0))
{
- Fputc(hex[v],fp);
+ fputc(hex[v],fp);
z=1;
}
}