mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
Fix two compiler warnings
This commit is contained in:
parent
e291948dcb
commit
b1b29a6317
1 changed files with 2 additions and 2 deletions
|
|
@ -120,7 +120,7 @@ Mp3FileImportableSource::unmap_mem ()
|
||||||
UnmapViewOfFile (_map_addr);
|
UnmapViewOfFile (_map_addr);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
munmap ((void*)_map_addr, _map_length);
|
munmap (const_cast<unsigned char*>(_map_addr), _map_length);
|
||||||
#endif
|
#endif
|
||||||
close (_fd);
|
close (_fd);
|
||||||
_map_addr = 0;
|
_map_addr = 0;
|
||||||
|
|
@ -175,7 +175,7 @@ Mp3FileImportableSource::seek (samplepos_t pos)
|
||||||
_n_frames -= pos - _read_position;
|
_n_frames -= pos - _read_position;
|
||||||
_read_position = pos;
|
_read_position = pos;
|
||||||
}
|
}
|
||||||
assert (_pcm_off >= 0 && _pcm_off < MINIMP3_MAX_SAMPLES_PER_FRAME);
|
assert (_pcm_off < MINIMP3_MAX_SAMPLES_PER_FRAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
samplecnt_t
|
samplecnt_t
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue