1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

math: fix const warnings

This commit is contained in:
Alexander Medvednikov
2019-09-16 21:26:05 +03:00
parent ff009f1c4e
commit 19b04d5427
3 changed files with 20 additions and 20 deletions

View File

@ -414,7 +414,7 @@ fn (p mut Parser) fn_decl() {
p.genln('init_consts();')
if 'os' in p.table.imports {
if f.name == 'main' {
p.genln('os__args = os__init_os_args(argc, argv);')
p.genln('os__args = os__init_os_args(argc, (byteptr*)argv);')
}
else if f.name == 'WinMain' {
p.genln('os__args = os__parse_windows_cmd_line(pCmdLine);')

View File

@ -960,9 +960,9 @@ fn (v &V) test_v() {
// println('$joined_args')
mut failed := false
test_files := os.walk_ext('.', '_test.v')
println('Testing...')
mut tmark := benchmark.new_benchmark()
mut tmark := benchmark.new_benchmark()
for dot_relative_file in test_files {
relative_file := dot_relative_file.replace('./', '')
file := os.realpath( relative_file )
@ -1045,6 +1045,6 @@ pub fn cerror(s string) {
fn vhash() string {
mut buf := [50]byte
buf[0] = 0
C.snprintf(buf, 50, '%s', C.V_COMMIT_HASH )
C.snprintf(*char(buf), 50, '%s', C.V_COMMIT_HASH )
return tos_clone(buf)
}