X<Y<Z doesn't has the mathematical meaning in C. Replace with X<Y && Y<Z.

Thanks, Felipe Sateler <fsateler@debian.org>
This commit is contained in:
Dmitry Smirnov
2013-07-05 15:18:19 +10:00
parent 92980fd399
commit efd39b282e

View File

@@ -146,7 +146,7 @@ int cd_get_ntrack(Cd *cd)
Track *cd_get_track(Cd *cd, int i)
{
if (0 < i <= cd->ntrack) {
if (0 < i && i <= cd->ntrack) {
return cd->track[i - 1];
}
@@ -283,7 +283,7 @@ int track_get_nindex(Track *track)
long track_get_index(Track *track, int i)
{
if (0 <= i < track->nindex) {
if (0 <= i && i < track->nindex) {
return track->index[i];
}