summaryrefslogtreecommitdiff
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authorKenta Murata <mrkn@mrkn.jp>2020-12-30 00:19:10 +0900
committerKenta Murata <mrkn@mrkn.jp>2020-12-30 00:22:21 +0900
commit8d93c1e70fb0923c53f2342852f4489b21bd80d3 (patch)
treefc1344ad9b7a5c4407f8b52274fc5da36ce15468 /ext/bigdecimal
parent086f3f187224fa59e294947ed4e840bc277aadc5 (diff)
[ruby/bigdecimal] Remove VP_EXCEPTION_MEMORY
It is no longer used due to the previous commit. https://github.com/ruby/bigdecimal/commit/7d463f802b
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/bigdecimal.c3
-rw-r--r--ext/bigdecimal/bigdecimal.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index 65f412e..888b21f 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -4007,7 +4007,7 @@ VpException(unsigned short f, const char *str,int always)
{
unsigned short const exception_mode = VpGetException();
- if (f == VP_EXCEPTION_OP || f == VP_EXCEPTION_MEMORY) always = 1;
+ if (f == VP_EXCEPTION_OP) always = 1;
if (always || (exception_mode & f)) {
switch(f) {
@@ -4019,7 +4019,6 @@ VpException(unsigned short f, const char *str,int always)
case VP_EXCEPTION_OP:
rb_raise(rb_eFloatDomainError, "%s", str);
break;
- case VP_EXCEPTION_MEMORY:
default:
rb_fatal("%s", str);
}
diff --git a/ext/bigdecimal/bigdecimal.h b/ext/bigdecimal/bigdecimal.h
index c89f212..8027873 100644
--- a/ext/bigdecimal/bigdecimal.h
+++ b/ext/bigdecimal/bigdecimal.h
@@ -221,7 +221,6 @@ extern VALUE rb_cBigDecimal;
/* Following 2 exceptions can't controlled by user */
#define VP_EXCEPTION_OP ((unsigned short)0x0020)
-#define VP_EXCEPTION_MEMORY ((unsigned short)0x0040)
#define RMPD_EXCEPTION_MODE_DEFAULT 0U