# HG changeset patch # User tuomov # Date 962451100 -7200 # Node ID 9f5760af87d90baaa690371fd2d476e92b65bb6c # Parent 91f0c87b62a732cf78c5dde295a01b705ba7c28b trunk: changeset 18 long double -> double diff -r 91f0c87b62a7 -r 9f5760af87d9 numparser2.h --- a/numparser2.h Sat Jun 03 19:00:43 2000 +0200 +++ b/numparser2.h Sat Jul 01 13:31:40 2000 +0200 @@ -19,7 +19,7 @@ int type; int base; bool negative; - long double fval; + double fval; ulong ival; } NPNum; @@ -27,9 +27,9 @@ static int npnum_mulbase_add(NPNum *num, long base, long v) { - long double iold=num->ival; + double iold=num->ival; - num->fval=num->fval*base+(long double)v; + num->fval=num->fval*base+(double)v; num->ival*=base; @@ -169,7 +169,7 @@ int err=0; int tmp; #ifdef NP_SIMPLE_IMPL - long double divisor=base; + double divisor=base; #endif if(c=='-' || c=='+'){ @@ -223,7 +223,7 @@ #ifdef NP_SIMPLE_IMPL if(dm==3){ - num->fval+=(long double)c/divisor; + num->fval+=(double)c/divisor; divisor*=base; }else #endif