@@ -69,7 +69,7 @@ namespace Rice::detail {
6969
7070 explicit From_Ruby (Arg* arg) : arg_(arg) { }
7171
72- Convertible is_convertible (VALUE value) { return Convertible::Cast ; }
72+ double is_convertible (VALUE value) { return Convertible::Exact ; }
7373
7474 c10::complex <T> convert (VALUE x) {
7575 VALUE real = rb_funcall (x, rb_intern (" real" ), 0 );
@@ -93,7 +93,7 @@ namespace Rice::detail {
9393
9494 explicit From_Ruby (Arg* arg) : arg_(arg) { }
9595
96- Convertible is_convertible (VALUE value) { return Convertible::Cast ; }
96+ double is_convertible (VALUE value) { return Convertible::Exact ; }
9797
9898 FanModeType convert (VALUE x) {
9999 auto s = String (x).str ();
@@ -122,7 +122,7 @@ namespace Rice::detail {
122122
123123 explicit From_Ruby (Arg* arg) : arg_(arg) { }
124124
125- Convertible is_convertible (VALUE value) { return Convertible::Cast ; }
125+ double is_convertible (VALUE value) { return Convertible::Exact ; }
126126
127127 NonlinearityType convert (VALUE x) {
128128 auto s = String (x).str ();
@@ -169,7 +169,7 @@ namespace Rice::detail {
169169
170170 explicit From_Ruby (Arg* arg) : arg_(arg) { }
171171
172- Convertible is_convertible (VALUE value) { return Convertible::Cast ; }
172+ double is_convertible (VALUE value) { return Convertible::Exact ; }
173173
174174 Scalar convert (VALUE x) {
175175 if (FIXNUM_P (x)) {
0 commit comments