Skip to content

Commit

Permalink
Remove VP_EXCEPTION_MEMORY
Browse files Browse the repository at this point in the history
It is no longer used due to the previous commit.
  • Loading branch information
mrkn committed Dec 29, 2020
1 parent 507f0a6 commit 7d463f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions ext/bigdecimal/bigdecimal.c
Expand Up @@ -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) {
Expand All @@ -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);
}
Expand Down
1 change: 0 additions & 1 deletion ext/bigdecimal/bigdecimal.h
Expand Up @@ -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

Expand Down

0 comments on commit 7d463f8

Please sign in to comment.