bigdecimal 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/bigdecimal/bigdecimal.c +2 -1
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac9ef6b7332d91d122fee9e0d0c4666cc503d356104ef2a3d93edcebaa6702fc
|
4
|
+
data.tar.gz: dc80fd72843a3e4c56e81c9f0249c402234eb9b65e70551ed72417d5cf8a89b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a546b5482b99c164513ac4f17a3cd691f4b04e1d48b775b414e71c3681bdb076c0206c8cc1e5c72e4fd5b5d165583b2dd8082f4628664bbe977d2507c22627f
|
7
|
+
data.tar.gz: ce32b1290903e0cfb2dd6fb00a20c4304c69672da72de7b1262bf2675f8a0dbab297f4c5a3fc1f5a0fe56e2a9146d6a12d515857e57f40f8f36fa5eaa911e360
|
data/ext/bigdecimal/bigdecimal.c
CHANGED
@@ -31,7 +31,7 @@
|
|
31
31
|
#include "bits.h"
|
32
32
|
#include "static_assert.h"
|
33
33
|
|
34
|
-
#define BIGDECIMAL_VERSION "3.2.
|
34
|
+
#define BIGDECIMAL_VERSION "3.2.1"
|
35
35
|
|
36
36
|
/* #define ENABLE_NUMERIC_STRING */
|
37
37
|
|
@@ -2151,6 +2151,7 @@ BigDecimal_div2(VALUE self, VALUE b, VALUE n)
|
|
2151
2151
|
ix = check_int_precision(n);
|
2152
2152
|
|
2153
2153
|
pl = VpSetPrecLimit(0);
|
2154
|
+
if (ix == 0) ix = pl;
|
2154
2155
|
|
2155
2156
|
GUARD_OBJ(av, GetVpValue(self, 1));
|
2156
2157
|
if (RB_FLOAT_TYPE_P(b) && ix > BIGDECIMAL_DOUBLE_FIGURES) {
|
metadata
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bigdecimal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenta Murata
|
8
8
|
- Zachary Scott
|
9
9
|
- Shigeo Kobayashi
|
10
|
-
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
14
13
|
dependencies: []
|
15
14
|
description: This library provides arbitrary-precision decimal floating-point number
|
16
15
|
class.
|
@@ -47,7 +46,6 @@ licenses:
|
|
47
46
|
- BSD-2-Clause
|
48
47
|
metadata:
|
49
48
|
changelog_uri: https://github.com/ruby/bigdecimal/blob/master/CHANGES.md
|
50
|
-
post_install_message:
|
51
49
|
rdoc_options: []
|
52
50
|
require_paths:
|
53
51
|
- lib
|
@@ -62,8 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
60
|
- !ruby/object:Gem::Version
|
63
61
|
version: '0'
|
64
62
|
requirements: []
|
65
|
-
rubygems_version: 3.
|
66
|
-
signing_key:
|
63
|
+
rubygems_version: 3.6.7
|
67
64
|
specification_version: 4
|
68
65
|
summary: Arbitrary-precision decimal floating-point number library.
|
69
66
|
test_files: []
|