diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-08-03 17:46:11 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-08-03 19:42:22 +0900 |
| commit | 1e9cb74cc6dd2fbe1b68edf3b73c7acfe7fc7831 (patch) | |
| tree | 8903a53a20fe88193d02ea36f2ece483b7805528 /tasks | |
| parent | f6c41c186200e54eaf5d25d301d945570a829f55 (diff) | |
| download | mruby-1e9cb74cc6dd2fbe1b68edf3b73c7acfe7fc7831.tar.gz mruby-1e9cb74cc6dd2fbe1b68edf3b73c7acfe7fc7831.zip | |
Change second argument to `%l` of `mrb_vformat()` to `size_t` from `mrb_int`
- `size_t` is more commonly used.
- `len` argument of `mrb_str_new()` is `size_t`.
NOTE:
The test for `%l` is temporarily disabled because adding a new type to
`mrbgems/mruby-test/vformat.c` causes an error (memory error?) on Visual
Studio 2017 in AppVeyor.
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/toolchains/visualcpp.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/toolchains/visualcpp.rake b/tasks/toolchains/visualcpp.rake index 6275059bb..9bf0f085e 100644 --- a/tasks/toolchains/visualcpp.rake +++ b/tasks/toolchains/visualcpp.rake @@ -2,7 +2,7 @@ MRuby::Toolchain.new(:visualcpp) do |conf, _params| conf.cc do |cc| cc.command = ENV['CC'] || 'cl.exe' # C4013: implicit function declaration - cc.flags = [ENV['CFLAGS'] || %w(/c /nologo /W3 /we4013 /Zi /MD /O2 /D_CRT_SECURE_NO_WARNINGS)] + cc.flags = [ENV['CFLAGS'] || %w(/c /nologo /W3 /we4013 /Zi /Zm2000 /MD /O2 /D_CRT_SECURE_NO_WARNINGS)] cc.defines = %w(MRB_STACK_EXTEND_DOUBLING) cc.option_include_path = '/I%s' cc.option_define = '/D%s' |
