blob: 1aa7e25106769848a6d7ce68b4b4eceaba2f3da8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
patch from opensuse: https://build.opensuse.org/projects/openSUSE:Leap:15.6:Update/packages/libcuefile/files/mathmeaning.patch
clang-22 error:
chained comparison 'X < Y <= Z' does not behave the same as a mathematical expression
--- a/src/cd.c
+++ b/src/cd.c
@@ -173,7 +173,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];
return NULL;
@@ -306,7 +306,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];
return -1;
|