Skip to content

Commit f244246

Browse files
fastftoi: fix stack overflow bug
1 parent 48bdb88 commit f244246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/deadbeef/fastftoi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static __inline void fpu_restore(fpu_control fpu){
166166
typedef int16_t fpu_control;
167167

168168
static inline int ftoi(float f) {
169-
float32x2_t fvec = vld1_f32(&f);
169+
float32x2_t fvec = vdup_n_f32(f);
170170
int32x2_t ivec = vcvt_s32_f32(fvec);
171171
return vget_lane_s32(ivec, 0);
172172
}

0 commit comments

Comments
 (0)