[BACK]Return to spexpr.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / io

Diff for /OpenXM_contrib2/asir2000/io/spexpr.c between version 1.38 and 1.39

version 1.38, 2015/08/07 09:19:43 version 1.39, 2015/08/20 08:53:05
Line 44 
Line 44 
  * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY   * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY
  * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,   * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
  * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.   * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
  * $OpenXM: OpenXM_contrib2/asir2000/io/spexpr.c,v 1.37 2015/08/04 06:20:45 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/io/spexpr.c,v 1.38 2015/08/07 09:19:43 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "al.h"  #include "al.h"
Line 128  void sprintbf(BF a)
Line 128  void sprintbf(BF a)
 {  {
         int dprec;          int dprec;
         char fbuf[BUFSIZ];          char fbuf[BUFSIZ];
           char *s;
         dprec = a->body->_mpfr_prec*0.30103;          dprec = a->body->_mpfr_prec*0.30103;
         sprintf(fbuf,"%%.%dR%c",dprec,double_output?'f':'g');          sprintf(fbuf,"%%.%dR%c",dprec,double_output?'f':'g');
         TAIL mpfr_sprintf(OUT,fbuf,a->body);          mpfr_asprintf(&s,fbuf,a->body);
           TAIL PUTS(s);
           mpfr_free_str(s);
 }  }

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>