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:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user