2 more unneeded casts removed

pull/3009/head
Alexander Medvednikov 2019-12-08 01:39:27 +03:00
parent b1174428a5
commit 5330859034
2 changed files with 2 additions and 2 deletions

View File

@ -361,7 +361,7 @@ fn parse_binary_tetro(t_ int) []Block {
for i := 0; i <= 3; i++ {
// Get ith digit of t
p := int(math.pow(10, 3 - i))
mut digit := int(t / p)
mut digit := t / p
t %= p
// Convert the digit to binary
for j := 3; j >= 0; j-- {

View File

@ -177,7 +177,7 @@ fn parse_flags(fp mut flag.FlagParser) FlagOptions {
serve : fp.bool('serve', false, 'run in webhook server mode')
work_dir : fp.string('work-dir', work_dir, 'gen_vc working directory')
purge : fp.bool('purge', false, 'force purge the local repositories')
port : fp.int('port', int(server_port), 'port for web server to listen on')
port : fp.int('port', server_port, 'port for web server to listen on')
log_to : fp.string('log-to', log_to, 'log to is \'file\' or \'terminal\'')
log_file : fp.string('log-file', log_file, 'log file to use when log-to is \'file\'')
dry_run : fp.bool('dry-run', dry_run, 'when specified dont push anything to remote repo')