1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-04-07 17:32:45 -04:00

mruby: fix Cirrus CI

This commit is contained in:
Alex Kotov 2022-05-28 15:22:50 +03:00
parent 52a607e573
commit b6945bfb9a
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 4 additions and 4 deletions

View file

@ -26,15 +26,15 @@ mruby_freebsd_task:
dependencies_script:
- pkg install --yes autoconf automake git rubygem-rake wget
dependencies_mruby_script:
- wget https://github.com/mruby/mruby/archive/3.0.0.zip -O mruby-3.0.0.zip
- unzip mruby-3.0.0.zip
- wget https://github.com/mruby/mruby/archive/3.1.0.zip -O mruby-3.1.0.zip
- unzip mruby-3.1.0.zip
main_build_script:
- ./autogen.sh
- ./configure CFLAGS='-O3'
- make
- sudo make install
mruby_test_script:
- cd mruby-3.0.0
- cd mruby-3.1.0
- MRUBY_CONFIG=../pkgs/mruby/build_config.rb rake test
ruby_freebsd_task:

View file

@ -77,7 +77,7 @@ mrb_value rb_KernAux_snprintf1(mrb_state *const mrb, mrb_value self)
} else if (spec.type == KERNAUX_PRINTF_FMT_TYPE_FLOAT ||
spec.type == KERNAUX_PRINTF_FMT_TYPE_EXP)
{
DynArg_use_double(&dynarg, mrb_float(mrb_ensure_float_type(mrb, arg_rb)));
DynArg_use_double(&dynarg, mrb_as_float(mrb, arg_rb));
} else if (spec.type == KERNAUX_PRINTF_FMT_TYPE_CHAR) {
DynArg_use_char(&dynarg, *RSTRING_CSTR(mrb, arg_rb));
} else if (spec.type == KERNAUX_PRINTF_FMT_TYPE_STR) {