Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Replace bc with shell arithmetic - 2.0 #8949

Merged
merged 3 commits into from
Apr 16, 2020

Conversation

revl
Copy link
Contributor

@revl revl commented Apr 15, 2020

Change Description

The variable MEM_GIG was computed using bc, an arbitrary precision calculator. That caused a numeric comparison that used that variable in scripts/eosio_build_darwin.sh to fail when the scale was set to a value greater than zero in the user's ~/.bc configuration file.

This commit fixes the problem by switching to shell arithmetic when computing MEM_GIG.

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

arhag and others added 2 commits March 12, 2020 18:52
The variable MEM_GIG was computed using bc, an arbitrary precision
calculator. That caused a numeric comparison that used that variable in
scripts/eosio_build_darwin.sh to fail when the scale was set to a value
greater than zero in the user's ~/.bc configuration file.

This commit fixes the problem by switching to shell arithmetic when
computing MEM_GIG.
@heifner heifner requested a review from scottarnette April 15, 2020 15:34
@heifner heifner changed the base branch from master to release/2.0.x April 15, 2020 15:36
@heifner heifner changed the title Replace bc with shell arithmetic Replace bc with shell arithmetic - 2.0 Apr 15, 2020
@spoonincode
Copy link
Contributor

seems good to me

@revl revl merged commit 089d3f9 into release/2.0.x Apr 16, 2020
@revl revl deleted the replace-bc-with-shell-arithmetic branch April 16, 2020 14:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants