summaryrefslogtreecommitdiffhomepage
path: root/examples/random.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-19 14:13:55 +0200
committerTyge Løvset <[email protected]>2021-09-19 14:13:55 +0200
commit677e3d855e1d35ae5bf12609e86785a01ce2f4cc (patch)
tree52580b3e210d6667515908a65f502c9c50dba848 /examples/random.c
parent8da81e7a625f06ec667793ff624c6876d03abbde (diff)
downloadSTC-modified-677e3d855e1d35ae5bf12609e86785a01ce2f4cc.tar.gz
STC-modified-677e3d855e1d35ae5bf12609e86785a01ce2f4cc.zip
Remove warnings.
Diffstat (limited to 'examples/random.c')
-rw-r--r--examples/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/random.c b/examples/random.c
index 32218b93..b3b01533 100644
--- a/examples/random.c
+++ b/examples/random.c
@@ -18,7 +18,7 @@ int main()
int hist[R] = {0};
sum = 0;
c_forrange (N2) {
- int n = round((stc64_normalf(&rng, &dist2) + 0.5));
+ int n = (int) round((stc64_normalf(&rng, &dist2) + 0.5));
sum += n;
if (n >= 0 && n < R) ++hist[n];
}