[ruby/bigdecimal] Remove VP_EXCEPTION_MEMORY

It is no longer used due to the previous commit.

https://github.com/ruby/bigdecimal/commit/7d463f802b
This commit is contained in:
Kenta Murata 2020-12-30 00:19:10 +09:00
parent 086f3f1872
commit 8d93c1e70f
2 changed files with 1 additions and 3 deletions

View File

@ -4007,7 +4007,7 @@ VpException(unsigned short f, const char *str,int always)
{ {
unsigned short const exception_mode = VpGetException(); 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)) { if (always || (exception_mode & f)) {
switch(f) { switch(f) {
@ -4019,7 +4019,6 @@ VpException(unsigned short f, const char *str,int always)
case VP_EXCEPTION_OP: case VP_EXCEPTION_OP:
rb_raise(rb_eFloatDomainError, "%s", str); rb_raise(rb_eFloatDomainError, "%s", str);
break; break;
case VP_EXCEPTION_MEMORY:
default: default:
rb_fatal("%s", str); rb_fatal("%s", str);
} }

View File

@ -221,7 +221,6 @@ extern VALUE rb_cBigDecimal;
/* Following 2 exceptions can't controlled by user */ /* Following 2 exceptions can't controlled by user */
#define VP_EXCEPTION_OP ((unsigned short)0x0020) #define VP_EXCEPTION_OP ((unsigned short)0x0020)
#define VP_EXCEPTION_MEMORY ((unsigned short)0x0040)
#define RMPD_EXCEPTION_MODE_DEFAULT 0U #define RMPD_EXCEPTION_MODE_DEFAULT 0U