Commit d0fbd229 authored by Cerlane Leong's avatar Cerlane Leong 💬

bug fix -> to exit while loop

parent 5bd920c1
......@@ -156,8 +156,9 @@ quire32_t q32_fdp_add( quire32_t q, posit32_t pA, posit32_t pB ){
if (uZ2.ui[i]>0){
uZ2.ui[i] = - uZ2.ui[i];
i--;
while(i){
while(i>=0){
uZ2.ui[i] = ~uZ2.ui[i];
i--;
}
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment