Skip to content
Snippets Groups Projects
Commit f9687631 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

cleaned-up cleanup

parent 5d579214
No related branches found
No related tags found
No related merge requests found
......@@ -640,15 +640,12 @@ scale( int new, lutil_int_decnum *prev, unsigned char *tmp )
}
}
out = tmp + prev->bufsiz - 1;
for ( i = 0; new ; i-- ) {
out = tmp + prev->bufsiz;
for ( i = -1; new ; i-- ) {
new += out[i];
out[i] = new & 0xff;
new >>= 8;
if (!new )
break;
}
i--;
prev->beg = prev->bufsiz + i;
prev->len = -i;
AC_MEMCPY( prev->buf+prev->beg, tmp+prev->beg, prev->len );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment