[BACK]Return to bcode.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / dc

Diff for /src/usr.bin/dc/bcode.c between version 1.27 and 1.28

version 1.27, 2005/03/27 17:50:55 version 1.28, 2005/03/28 17:39:20
Line 307 
Line 307 
   
 #ifdef DEBUGGING  #ifdef DEBUGGING
 void  void
 pn(const char * str, const struct number *n)  pn(const char *str, const struct number *n)
 {  {
         char *p = BN_bn2dec(n->number);          char *p = BN_bn2dec(n->number);
         if (p == NULL)          if (p == NULL)
Line 318 
Line 318 
 }  }
   
 void  void
 pbn(const char * str, const BIGNUM *n)  pbn(const char *str, const BIGNUM *n)
 {  {
         char *p = BN_bn2dec(n);          char *p = BN_bn2dec(n);
         if (p == NULL)          if (p == NULL)
Line 1190 
Line 1190 
                 negate(p);                  negate(p);
                 scale = bmachine.scale;                  scale = bmachine.scale;
         } else {          } else {
                 /* Posix bc says min(a.scale * b, max(a.scale, scale) */                  /* Posix bc says min(a.scale *b, max(a.scale, scale) */
                 u_long  b;                  u_long  b;
                 u_int   m;                  u_int   m;
   

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28