From 797bc5fc6c38dbd4ee96790b8870836e77f061c6 Mon Sep 17 00:00:00 2001 From: Mike Kasprzak Date: Fri, 5 Jun 2015 16:27:24 -0400 Subject: [PATCH] someone forgot to write code for p_itof() --- src/math/p_itof.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/math/p_itof.c b/src/math/p_itof.c index c286fbe..75461f4 100644 --- a/src/math/p_itof.c +++ b/src/math/p_itof.c @@ -18,4 +18,9 @@ * */ #include -void p_itof(int *a, float *c, int n, int p, p_team_t team) {} +void p_itof(int *a, float *c, int n, int p, p_team_t team) { + int i; + for(i = 0; i < n; i++) { + *(c + i) = (float)(*(a + i)); + } +}