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:
Ivan Baravy 2019-06-18 19:24:22 +00:00
parent 1203d7f120
commit bb04fe3a77

View File

@ -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