kxylxp / grub4dos-chenall

Automatically exported from code.google.com/p/grub4dos-chenall
0 stars 0 forks source link

Enhancement: use decimal unsigned arithmetic in set command #114

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

set /a x=0xb000000
set /A y=0xb000000
set /a z=29527900016 
set

x=-1073741924  (29527900016 is output to console by the set command!)
y=0xB000000    (correct)
z=-1073741924  (29527900016 is output to console by the set command!)

Should be:
x=29527900016  
y=0xB000000     
z=29527900016   

What version of the product are you using? On what operating system?
recent

Please provide any additional information below.

maybe have a set /ua  switch for unsigned arithemetic?

Original issue reported on code.google.com by Steve6375 on 14 Feb 2013 at 10:14

GoogleCodeExporter commented 8 years ago
The new may be fixed.

Original comment by chenall.cn on 3 Mar 2013 at 12:27

GoogleCodeExporter commented 8 years ago
set /a z=23 / 0   hangs CPU in 2013-03-03 !!!

Original comment by Steve6375 on 3 Mar 2013 at 11:41

GoogleCodeExporter commented 8 years ago
also in previous versions like 2013-02-02.

Original comment by Steve6375 on 3 Mar 2013 at 11:44

GoogleCodeExporter commented 8 years ago
divide by zero error.
try next version.

Original comment by chenall.cn on 4 Mar 2013 at 7:32

GoogleCodeExporter commented 8 years ago

Original comment by chenall.cn on 11 Mar 2013 at 9:20