mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
2 more unneeded casts removed
This commit is contained in:
parent
b1174428a5
commit
5330859034
@ -361,7 +361,7 @@ fn parse_binary_tetro(t_ int) []Block {
|
|||||||
for i := 0; i <= 3; i++ {
|
for i := 0; i <= 3; i++ {
|
||||||
// Get ith digit of t
|
// Get ith digit of t
|
||||||
p := int(math.pow(10, 3 - i))
|
p := int(math.pow(10, 3 - i))
|
||||||
mut digit := int(t / p)
|
mut digit := t / p
|
||||||
t %= p
|
t %= p
|
||||||
// Convert the digit to binary
|
// Convert the digit to binary
|
||||||
for j := 3; j >= 0; j-- {
|
for j := 3; j >= 0; j-- {
|
||||||
|
@ -177,7 +177,7 @@ fn parse_flags(fp mut flag.FlagParser) FlagOptions {
|
|||||||
serve : fp.bool('serve', false, 'run in webhook server mode')
|
serve : fp.bool('serve', false, 'run in webhook server mode')
|
||||||
work_dir : fp.string('work-dir', work_dir, 'gen_vc working directory')
|
work_dir : fp.string('work-dir', work_dir, 'gen_vc working directory')
|
||||||
purge : fp.bool('purge', false, 'force purge the local repositories')
|
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_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\'')
|
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')
|
dry_run : fp.bool('dry-run', dry_run, 'when specified dont push anything to remote repo')
|
||||||
|
Loading…
Reference in New Issue
Block a user