X-Git-Url: https://ginac.de/CLN/cln.git//cln.git?a=blobdiff_plain;f=src%2Ffloat%2Flfloat%2Felem%2Fcl_LF_1plus.cc;h=00fcfe6782215a2377a007a8fc679a57ec41b61c;hb=c84c6db5d56829d69083c819688a973867694a2a;hp=4c90e5004f1cf71f20d3b5f54b4052a2b5c80a04;hpb=976a13157ca8d274a5bcbdac662cac538091e92c;p=cln.git diff --git a/src/float/lfloat/elem/cl_LF_1plus.cc b/src/float/lfloat/elem/cl_LF_1plus.cc index 4c90e50..00fcfe6 100644 --- a/src/float/lfloat/elem/cl_LF_1plus.cc +++ b/src/float/lfloat/elem/cl_LF_1plus.cc @@ -57,7 +57,7 @@ const cl_LF LF_LF_plus_LF (const cl_LF& arg1, const cl_LF& arg2) swap(uintL, uexp1,uexp2); } } - if (expdiff >= intDsize * (uintL)len + 2) // e1-e2 >= 16n+2 ? + if (expdiff >= intDsize * len + 2) // e1-e2 >= 16n+2 ? { return x1; } // ja -> x1 als Ergebnis // neues Long-Float allozieren: var Lfloat y = allocate_lfloat(len,uexp1,TheLfloat(x1)->sign); @@ -153,7 +153,7 @@ const cl_LF LF_LF_plus_LF (const cl_LF& arg1, const cl_LF& arg2) } // UDS y_mantMSDptr/len/y_mantLSDptr/rounding_bits normalisieren: {var uintD* ptr = y_mantMSDptr; - var uintL k = 0; + var uintC k = 0; var uintC count; dotimesC(count,len, { if (!(mspref(ptr,0)==0)) goto nonzero_found;