projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9956027
)
src/mathutils.c: prevent segfault with latest Accelerate.framework (closes #58, close...
author
Paul Brossier
<piem@piem.org>
Fri, 21 Apr 2017 08:19:44 +0000
(10:19 +0200)
committer
Paul Brossier
<piem@piem.org>
Fri, 21 Apr 2017 08:19:44 +0000
(10:19 +0200)
src/mathutils.c
patch
|
blob
|
history
diff --git
a/src/mathutils.c
b/src/mathutils.c
index
cd1b719
..
209d2ca
100644
(file)
--- a/
src/mathutils.c
+++ b/
src/mathutils.c
@@
-225,10
+225,10
@@
fvec_min_elem (fvec_t * s)
}
#else
smpl_t tmp = 0.;
}
#else
smpl_t tmp = 0.;
-
uint_t pos = 0.
;
- aubio_vDSP_minvi(s->data, 1, &tmp,
(vDSP_Length *)
&pos, s->length);
+
vDSP_Length pos = 0
;
+ aubio_vDSP_minvi(s->data, 1, &tmp, &pos, s->length);
#endif
#endif
- return pos;
+ return
(uint_t)
pos;
}
uint_t
}
uint_t
@@
-243,10
+243,10
@@
fvec_max_elem (fvec_t * s)
}
#else
smpl_t tmp = 0.;
}
#else
smpl_t tmp = 0.;
-
uint_t pos = 0.
;
- aubio_vDSP_maxvi(s->data, 1, &tmp,
(vDSP_Length *)
&pos, s->length);
+
vDSP_Length pos = 0
;
+ aubio_vDSP_maxvi(s->data, 1, &tmp, &pos, s->length);
#endif
#endif
- return pos;
+ return
(uint_t)
pos;
}
void
}
void