forked from KolibriOS/kolibrios
boxlib/progressbar: Fix imul overflow, use 32*32 mul.
git-svn-id: svn://kolibrios.org@7671 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
1203d7f120
commit
bb04fe3a77
@ -79,10 +79,9 @@ get_progress_width:
|
|||||||
dec esi
|
dec esi
|
||||||
sub eax, ecx
|
sub eax, ecx
|
||||||
dec esi
|
dec esi
|
||||||
imul eax, esi
|
|
||||||
neg ecx
|
neg ecx
|
||||||
add ecx, edx
|
add ecx, edx
|
||||||
xor edx, edx
|
mul esi
|
||||||
div ecx
|
div ecx
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user