From 66cdf0cfdad5157f9ddea3c48e50c574603fcde1 Mon Sep 17 00:00:00 2001 From: tompng Date: Wed, 3 Sep 2025 00:54:06 +0900 Subject: [PATCH] In JRuby, don't add sqrt, exp, log, power implemented in ruby Ruby-implemented sqrt, exp, log, power depends on new feature only implemented in bigdecimal.c: `BigDecimal(float_without_prec)` and `BigDecimal#_decimal_shift` --- lib/bigdecimal.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bigdecimal.rb b/lib/bigdecimal.rb index c8a00d77..41f3890b 100644 --- a/lib/bigdecimal.rb +++ b/lib/bigdecimal.rb @@ -1,5 +1,6 @@ if RUBY_ENGINE == 'jruby' JRuby::Util.load_ext("org.jruby.ext.bigdecimal.BigDecimalLibrary") + return else require 'bigdecimal.so' end