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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/bigdecimal/bigdecimal.c +2 -1
  3. metadata +3 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4fdad45c0e9519d352fa25d4134af80ce6897c8196bcb3bf0e25d6ebcea8918
4
- data.tar.gz: ed56f36c2e5fd8cea29b0de49ac2c25edf186de643d69aff660677ada7a79ae8
3
+ metadata.gz: ac9ef6b7332d91d122fee9e0d0c4666cc503d356104ef2a3d93edcebaa6702fc
4
+ data.tar.gz: dc80fd72843a3e4c56e81c9f0249c402234eb9b65e70551ed72417d5cf8a89b3
5
5
  SHA512:
6
- metadata.gz: 2481253ce262ad322882ca3c3ae5c14eec4b4cc599c34c4aac0e71f3161cece17adce5b506fc94548018ab9605c411e1746d40bdc9f086ef3dfd085197ce7d15
7
- data.tar.gz: cb3ee7815dd3d4f63271ffb09c09ff485dd9603b6fc5cb639416cf1f7c20df576aac5e53c891245bbc0a03789b4f2dcd514cf7e48c186f05f58600a799a5ed6e
6
+ metadata.gz: 1a546b5482b99c164513ac4f17a3cd691f4b04e1d48b775b414e71c3681bdb076c0206c8cc1e5c72e4fd5b5d165583b2dd8082f4628664bbe977d2507c22627f
7
+ data.tar.gz: ce32b1290903e0cfb2dd6fb00a20c4304c69672da72de7b1262bf2675f8a0dbab297f4c5a3fc1f5a0fe56e2a9146d6a12d515857e57f40f8f36fa5eaa911e360
@@ -31,7 +31,7 @@
31
31
  #include "bits.h"
32
32
  #include "static_assert.h"
33
33
 
34
- #define BIGDECIMAL_VERSION "3.2.0"
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.0
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: 2025-05-29 00:00:00.000000000 Z
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.5.10
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: []