You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jack-audio-connection-kit/jack-gcc7.patch

13 lines
788 B

diff -rupN jack-1.9.10.org/tests/test.cpp jack-1.9.10/tests/test.cpp
--- jack-1.9.10.org/tests/test.cpp 2014-07-18 08:28:13.000000000 -0400
+++ jack-1.9.10/tests/test.cpp 2017-02-13 20:24:13.691773753 -0500
@@ -480,7 +480,7 @@ int process4(jack_nframes_t nframes, voi
jack_nframes_t delta_time = cur_time - last_time;
Log("calling process4 callback : jack_frame_time = %ld delta_time = %ld\n", cur_time, delta_time);
- if (delta_time > 0 && (jack_nframes_t)abs(delta_time - cur_buffer_size) > tolerance) {
+ if (delta_time > 0 && (jack_nframes_t)abs((int64_t)delta_time - cur_buffer_size) > tolerance) {
printf("!!! ERROR !!! jack_frame_time seems to return incorrect values cur_buffer_size = %d, delta_time = %d tolerance %d\n", cur_buffer_size, delta_time, tolerance);
}