Calculator bug fix

General discussion about Visopsys. We'll create more specific forums if the number of posts justifies that.
Post Reply
nextvolume
Posts: 29
Joined: Sun Sep 01, 2013 7:58 pm

Calculator bug fix

Post by nextvolume » Fri Oct 30, 2015 7:33 am

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: 476
Joined: Tue Nov 16, 2010 7:20 pm

Re: Calculator bug fix

Post by andymc » Mon Nov 02, 2015 12:18 pm

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