[前][次][番号順一覧][スレッド一覧]

ruby-changes:64668

From: Kenta <ko1@a...>
Date: Wed, 30 Dec 2020 00:46:16 +0900 (JST)
Subject: [ruby-changes:64668] 8d93c1e70f (master): [ruby/bigdecimal] Remove VP_EXCEPTION_MEMORY

https://git.ruby-lang.org/ruby.git/commit/?id=8d93c1e70f

From 8d93c1e70fb0923c53f2342852f4489b21bd80d3 Mon Sep 17 00:00:00 2001
From: Kenta Murata <mrkn@m...>
Date: Wed, 30 Dec 2020 00:19:10 +0900
Subject: [ruby/bigdecimal] Remove VP_EXCEPTION_MEMORY

It is no longer used due to the previous commit.

https://github.com/ruby/bigdecimal/commit/7d463f802b

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) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L4007
 {
     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) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L4019
 	  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; https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.h#L221
 
 /* 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
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]