diff options
| author | Christopher Aue <[email protected]> | 2017-08-09 21:42:42 +0200 |
|---|---|---|
| committer | Christopher Aue <[email protected]> | 2017-08-09 21:56:27 +0200 |
| commit | 2fadddcd20a16afe0e710d07288e106993a43a07 (patch) | |
| tree | a2b928be7c8dd7103aded1df6ce547ad18aef54e /mrbgems | |
| parent | 24c345fe5c68a3f0cd4d16e84c8bf6ed93cedce8 (diff) | |
| download | mruby-2fadddcd20a16afe0e710d07288e106993a43a07.tar.gz mruby-2fadddcd20a16afe0e710d07288e106993a43a07.zip | |
Replaced tabs with spaces
Diffstat (limited to 'mrbgems')
| -rw-r--r-- | mrbgems/mruby-compiler/core/parse.y | 2 | ||||
| -rw-r--r-- | mrbgems/mruby-random/src/mt19937ar.c | 6 | ||||
| -rw-r--r-- | mrbgems/mruby-sprintf/src/sprintf.c | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index c82a93932..b7d0d904c 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -1384,7 +1384,7 @@ command_asgn : lhs '=' command_rhs backref_error(p, $1); $$ = new_begin(p, 0); } - ; + ; command_rhs : command_call %prec tOP_ASGN | command_call modifier_rescue stmt diff --git a/mrbgems/mruby-random/src/mt19937ar.c b/mrbgems/mruby-random/src/mt19937ar.c index bee06b574..405bd5c20 100644 --- a/mrbgems/mruby-random/src/mt19937ar.c +++ b/mrbgems/mruby-random/src/mt19937ar.c @@ -52,8 +52,7 @@ void mrb_random_init_genrand(mt_state *t, unsigned long s) { t->mt[0]= s & 0xffffffffUL; for (t->mti=1; t->mti<N; t->mti++) { - t->mt[t->mti] = - (1812433253UL * (t->mt[t->mti-1] ^ (t->mt[t->mti-1] >> 30)) + t->mti); + t->mt[t->mti] = (1812433253UL * (t->mt[t->mti-1] ^ (t->mt[t->mti-1] >> 30)) + t->mti); t->mt[t->mti] &= 0xffffffffUL; } } @@ -111,8 +110,7 @@ void init_genrand(unsigned long s) { mt[0]= s & 0xffffffffUL; for (mti=1; mti<N; mti++) { - mt[mti] = - (1812433253UL * (mt[mti-1] ^ (mt[mti-1] >> 30)) + mti); + mt[mti] = (1812433253UL * (mt[mti-1] ^ (mt[mti-1] >> 30)) + mti); /* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. */ /* In the previous versions, MSBs of the seed affect */ /* only MSBs of the array mt[]. */ diff --git a/mrbgems/mruby-sprintf/src/sprintf.c b/mrbgems/mruby-sprintf/src/sprintf.c index 7b8201736..788617cda 100644 --- a/mrbgems/mruby-sprintf/src/sprintf.c +++ b/mrbgems/mruby-sprintf/src/sprintf.c @@ -1020,7 +1020,7 @@ retry: else if (flags & (FPLUS|FSPACE)) sign = (flags & FPLUS) ? '+' : ' '; if (sign) - ++need; + ++need; if ((flags & FWIDTH) && need < width) need = width; |
