Calculator bug fix

General discussion about Visopsys.
Post Reply
nextvolume
Posts: 30
Joined: Sun Sep 01, 2013 7:58 pm

Calculator bug fix

Post by nextvolume »

Hi, the Visopsys calculator cannot compute square root and factorial numbers in 0.8_pre1
The following two one-line fixes will correct this:

Code: Select all

update_calculator_display((root = calc_result));
must become

Code: Select all

update_calculator_display((number_field = calc_result = root));
and

Code: Select all

update_calculator_display((calc_result = factresult));
must become

Code: Select all

update_calculator_display((number_field = calc_result = factresult));
Visopsys@Unhaut - http://unhaut.fav.cc/visopsys
User avatar
andymc
Posts: 589
Joined: Tue Nov 16, 2010 7:20 pm

Re: Calculator bug fix

Post by andymc »

Thanks nextvolume.

Is this some new bug? Did I do that? I looked at a bunch of diffs but I think I only changed some formatting and window- and i18n-related things.

Any new programs to contribute?? :mrgreen: :mrgreen:

Andy
Post Reply