jack: fix gcc7 build
This commit is contained in:
parent
fcffde4e8e
commit
943224c579
|
@ -0,0 +1,11 @@
|
|||
--- tests/test.cpp 2014-07-19 15:34:15.000000000 +0200
|
||||
+++ tests/test.cpp 2017-05-10 01:32:47.852989559 +0200
|
||||
@@ -480,7 +480,7 @@
|
||||
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((int)(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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue