Browse Source

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

Thanks, Felipe Sateler <fsateler@debian.org>
master
Dmitry Smirnov 10 years ago
parent
commit
efd39b282e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lib/cd.c

+ 2
- 2
src/lib/cd.c 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];
}



Loading…
Cancel
Save