Merge pull request #308 from blackgnezdo/blackgnezdo-master.

Fixes loop end condition in __vpiDecConst::vpi_get_value().
This commit is contained in:
Martin Whitaker 2020-02-08 19:29:49 +00:00
commit 97edccceab
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ void __vpiDecConst::vpi_get_value(p_vpi_value vp)
break;
case vpiBinStrVal:
for(int bit=31; bit<=0;bit--){
for(int bit=31; bit>=0;bit--){
*cp++ = "01"[ (value>>bit)&1 ];
}
*cp = 0;