Skip to content

fix: improve Windows support.#83

Merged
faustbrian merged 2 commits intoArkEcosystemArchive:masterfrom
sleepdefic1t:fix/improve-windows-support
May 21, 2019
Merged

fix: improve Windows support.#83
faustbrian merged 2 commits intoArkEcosystemArchive:masterfrom
sleepdefic1t:fix/improve-windows-support

Conversation

@sleepdefic1t
Copy link
Contributor

Proposed changes

Current Windows builds fail with the following:
error C2131: expression did not evaluate to a constant

example build log can be found here: FAILING: ci.appveyor/sleepdefic1t/cpp-crypto

This is due to the way Windows handles dynamic allocation.
The current implementation uses this breaking allocation pattern in transaction.cpp and message.cpp.

After the changes in this PR, Windows builds pass.

example build log can be found here: PASSING: ci.appveyor/sleepdefic1t/cpp-crypto

Types of changes

  • Bugfix (non-breaking change which fixes an issue)

Checklist

  • I have read the CONTRIBUTING documentation
  • Lint and unit tests pass locally with my changes

Further comments

A later PR will address adding Appveyor support.

Windows doesn't handle dynamic allocation well.

- transaction.cpp
  - explicitly define est. doc max size of 900.
  - No need for string since we're stating size.
- message.cpp
  - let string handle doc size allocation.
@ghost ghost added Complexity: Low Less than 64 lines changed. Type: Bugfix The pull request fixes an incorrect functionality or behaviour. labels May 20, 2019
@ghost
Copy link

ghost commented May 20, 2019

The ci/circleci: build-linux-default job is failing as of a4021a71c09aa83ca5322a11c673036f791e3f76. Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@sleepdefic1t
Copy link
Contributor Author

build-linux-default/(PlatformIO) build failing as discussed in #81

@sleepdefic1t sleepdefic1t mentioned this pull request May 21, 2019
3 tasks
@faustbrian faustbrian merged commit 14a8b19 into ArkEcosystemArchive:master May 21, 2019
@sleepdefic1t sleepdefic1t deleted the fix/improve-windows-support branch May 21, 2019 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complexity: Low Less than 64 lines changed. Type: Bugfix The pull request fixes an incorrect functionality or behaviour.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants