Skip to content

Commit 212e4e3

Browse files
committed
Use already defined constant, rather than a magic value.
1 parent aaa2c24 commit 212e4e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/truffle/bigdecimal.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def self.mode(key, value = nil)
4646
Truffle::Type.check_long(key)
4747

4848
if key == ROUND_MODE
49-
Thread.current[:'BigDecimal.rounding_mode'] ||= 3
49+
Thread.current[:'BigDecimal.rounding_mode'] ||= ROUND_HALF_UP
5050
if value
5151
Thread.current[:'BigDecimal.rounding_mode'] = value
5252
else

0 commit comments

Comments
 (0)