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

tests: update for stricter type checks

This commit is contained in:
Uwe Krüger
2020-05-24 21:07:32 +02:00
committed by GitHub
parent 4e66c12557
commit fd4d28b7b6
25 changed files with 88 additions and 76 deletions

View File

@@ -113,7 +113,7 @@ fn (am AssetManager) combine(asset_type string, to_file bool) string {
fn (am AssetManager) get_cache_key(asset_type string) string {
mut files_salt := ''
mut latest_modified := 0
mut latest_modified := u64(0)
for asset in am.get_assets(asset_type) {
files_salt += asset.file_path
if asset.last_modified.unix > latest_modified {
@@ -157,7 +157,7 @@ fn (mut am AssetManager) add(asset_type, file string) bool {
}
asset := Asset{
file_path: file
last_modified: time.Time{unix: os.file_last_mod_unix(file)}
last_modified: time.Time{unix: u64(os.file_last_mod_unix(file))}
}
if asset_type == 'css' {
am.css << asset