Mercurial > hg > forks > multipaint-js
changeset 76:b07084443528
Use Math.trunc() instead of Math.floor()
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Jul 2018 13:37:12 +0300 |
parents | 3d68411c320c |
children | 62f21240ff63 |
files | postprocess.pl |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/postprocess.pl Thu Jul 05 13:30:43 2018 +0300 +++ b/postprocess.pl Thu Jul 05 13:37:12 2018 +0300 @@ -18,6 +18,6 @@ $line =~ s@.p\.parseByte\(@(@g; $line =~ s@.p\.parseInt\(\(new\s+.p\.Character\('(.)'\)\)\)@sprintf('%d',ord($1))@eg; $line =~ s@\(new\s+.p\.Character\('(.)'\)\)@sprintf('%d',ord($1))@eg; - $line =~ s@.p\.parseInt\(@Math.floor(@g; + $line =~ s@.p\.parseInt\(@Math.trunc(@g; print $line; }