diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-30 09:58:23 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-30 09:58:23 +0900 |
| commit | 2cb54e4b9d523e85b65a30b7af593791e8ac83f0 (patch) | |
| tree | d9535d70ba74920783864fa6372ec471aca5af91 /src | |
| parent | 0bdc87d2396a607d05bad06e4e6d2d0bc0bc8f76 (diff) | |
| parent | ab67c57f652c7c3a64ec4f4dc73259a14fb1b545 (diff) | |
| download | mruby-2cb54e4b9d523e85b65a30b7af593791e8ac83f0.tar.gz mruby-2cb54e4b9d523e85b65a30b7af593791e8ac83f0.zip | |
Merge pull request #2160 from nobu/space
Space
Diffstat (limited to 'src')
| -rw-r--r-- | src/mruby_core.rake | 2 | ||||
| -rw-r--r-- | src/numeric.c | 2 | ||||
| -rw-r--r-- | src/print.c | 2 | ||||
| -rw-r--r-- | src/proc.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/mruby_core.rake b/src/mruby_core.rake index 87759aa61..04be0736c 100644 --- a/src/mruby_core.rake +++ b/src/mruby_core.rake @@ -2,7 +2,7 @@ MRuby.each_target do current_dir = File.dirname(__FILE__).relative_path_from(Dir.pwd) relative_from_root = File.dirname(__FILE__).relative_path_from(MRUBY_ROOT) current_build_dir = "#{build_dir}/#{relative_from_root}" - + lex_def = "#{current_dir}/lex.def" objs = Dir.glob("#{current_dir}/*.c").map { |f| next nil if cxx_abi_enabled? and f =~ /(codegen|error|vm).c$/ diff --git a/src/numeric.c b/src/numeric.c index ef7b5fc82..46b3cdf37 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -150,7 +150,7 @@ mrb_flo_to_str(mrb_state *mrb, mrb_float flo) else { exp = 0; } - + /* preserve significands */ if (exp < 0) { int i, beg = -1, end = 0; diff --git a/src/print.c b/src/print.c index 6472a4675..f4ed85601 100644 --- a/src/print.c +++ b/src/print.c @@ -38,7 +38,7 @@ mrb_print_error(mrb_state *mrb) { #ifdef ENABLE_STDIO mrb_value s; - + mrb_print_backtrace(mrb); s = mrb_funcall(mrb, mrb_obj_value(mrb->exc), "inspect", 0); if (mrb_string_p(s)) { diff --git a/src/proc.c b/src/proc.c index b29bd5977..fa4c28fc8 100644 --- a/src/proc.c +++ b/src/proc.c @@ -43,7 +43,7 @@ closure_setup(mrb_state *mrb, struct RProc *p, int nlocals) e = (struct REnv*)mrb_obj_alloc(mrb, MRB_TT_ENV, (struct RClass*)mrb->c->ci->proc->env); MRB_ENV_STACK_LEN(e)= (unsigned int)nlocals; e->mid = mrb->c->ci->mid; - e->cioff = mrb->c->ci - mrb->c->cibase; + e->cioff = mrb->c->ci - mrb->c->cibase; e->stack = mrb->c->stack; mrb->c->ci->env = e; } |
