Skip to content

Commit

Permalink
fix(capi): minor update for compiling on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
prasadtiru committed Apr 23, 2021
1 parent 0f83f6d commit f91dc66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unetsocket/c/unet_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ int unetsocket_npulses(unetsocket_t sock, float *signal, int nsamples, int rate,
fjage_aid_t bb;
int pulsedelay_cache = 0;
int npulses_cache = 0;
float signalduration = (1000 / rate) * (float)nsamples;
float signalduration = (float)((1000 / rate) * nsamples);
int pulsedelay = (int)round(((float)pri - signalduration));
if (pri < signalduration + 5)
{
Expand Down

0 comments on commit f91dc66

Please sign in to comment.