diff options
author | shigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-04 03:50:37 +0000 |
---|---|---|
committer | shigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-04 03:50:37 +0000 |
commit | 44bc61e1095fbdaf8a018199c01c29047889b568 (patch) | |
tree | c491c0071804dd13aec2d7c958ecf74bf0e7b1e5 | |
parent | ea8f29220478d46126ea71ce3373bc096d33aba6 (diff) | |
download | ruby-44bc61e1095fbdaf8a018199c01c29047889b568.tar.gz ruby-44bc61e1095fbdaf8a018199c01c29047889b568.tar.xz ruby-44bc61e1095fbdaf8a018199c01c29047889b568.zip |
Bug fix: [ruby-dev:21314] [BigDecimal] [BUG] Segmentation fault
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ext/bigdecimal/bigdecimal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 58506d6d5..cf71ad11c 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -2164,7 +2164,7 @@ end_if: VpSetSign(c,VpGetSign(a_ptr) * sw); } } - VpInternalRound(c,0,(c->Prec>0)?a->frac[c->Prec-1]:0,mrv); + VpInternalRound(c,0,(c->Prec>0)?c->frac[c->Prec-1]:0,mrv); #ifdef _DEBUG if(gfDebug) { |