Skip to content

Initializing defined_size in VNumber Copy constructor #1739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 28, 2021

Conversation

sdamghan
Copy link
Member

Signed-off-by: Seyed Alireza Damghani [email protected]

Description

In VNumber copy constructor with new length, the defined_size variable was not initialized. As a result, Odin_II would throw an error in case of facing new VNumbers without defined_size equal to true while they have already a size specified.

Related Issue

#1738

Motivation and Context

Bug fix!

How Has This Been Tested?

Types of changes

  • Bug fix (change which fixes an issue)
  • New feature (change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

@sdamghan sdamghan force-pushed the minus_operator branch 3 times, most recently from 5e49186 to 83208e1 Compare May 26, 2021 01:06
@sdamghan
Copy link
Member Author

sdamghan commented May 26, 2021

@ArashAhmadian Thanks for finding the bug!
This PR would fix the last issue you mentioned in the email. Waiting for CI green checkmarks then will be merged.
Please feel free to add more information on the related issue.

@ArashAhmadian
Copy link
Contributor

@sdamghan Great! Thanks for letting me know.

@sdamghan
Copy link
Member Author

@vaughnbetz This PR is ready to merge as well.

@ArashAhmadian
Copy link
Contributor

@vaughnbetz Could you merge this PR?

@vaughnbetz
Copy link
Contributor

I'm going to let CI keep going overnight as I want to see if vtr_nightly_reg works this time (indicating it was a transient kokoro issue). Will merge tomorrow morning.

@ArashAhmadian
Copy link
Contributor

I'm going to let CI keep going overnight as I want to see if vtr_nightly_reg works this time (indicating it was a transient kokoro issue). Will merge tomorrow morning.

Sounds good.

@vaughnbetz vaughnbetz merged commit 4eb39c1 into verilog-to-routing:master May 28, 2021
@vaughnbetz
Copy link
Contributor

All CI passed, so the kokoro failure was transient.

@sdamghan
Copy link
Member Author

Awesome, thanks @vaughnbetz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants