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

tests: use a platform neutral module with C declarations (sokol.audio), instead of time in private_redeclaration_of_C_timeval.vv .

This commit is contained in:
Delyan Angelov
2022-06-27 19:48:46 +03:00
parent 94d6670e8f
commit b1a14c6cf7
7 changed files with 41 additions and 31 deletions

View File

@ -170,7 +170,7 @@ fn read_wav_file_samples(fpath string) ?[]f32 {
}
//
if ch.chunk_type == [u8(`d`), `a`, `t`, `a`]! {
if rf == 0 {
if unsafe { rf == 0 } {
return error('`data` chunk should be after `fmt ` chunk')
}
// eprintln('`fmt ` chunk: $rf\n`data` chunk: $ch')