diff options
author | jonsykkel <jonrevold@gmail.com> | 2021-09-06 05:40:23 +0200 |
---|---|---|
committer | jonsykkel <jonrevold@gmail.com> | 2021-09-06 05:40:23 +0200 |
commit | d72745bbbd9940a6a6cf9434a608e707a9f71c55 (patch) | |
tree | c78b01eab8d684cfa87ac7f56dc62a9df6691d07 | |
parent | 75b595adb83a391f2f8168b04b156367d42eda09 (diff) | |
download | okeffa-d72745bbbd9940a6a6cf9434a608e707a9f71c55.tar.gz |
ugg
-rw-r--r-- | inc/okeffa/fz_basic.h | 2 | ||||
-rw-r--r-- | src/fz_basic.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/inc/okeffa/fz_basic.h b/inc/okeffa/fz_basic.h index dbcfe8e..a67ed8f 100644 --- a/inc/okeffa/fz_basic.h +++ b/inc/okeffa/fz_basic.h @@ -7,6 +7,6 @@ void fz_clear (word_t *a,size_t len); void fz_swap (word_t *a,word_t *b,size_t len); void fz_mux (word_t *a,word_t *b,word_t *o,size_t len,wbool_t sel); -void fz_frombool (wbool_t b,word_t *o,size_t len); +void fz_frombool (word_t *a,size_t len,wbool_t b); #endif diff --git a/src/fz_basic.c b/src/fz_basic.c index 5dc8f99..e8238de 100644 --- a/src/fz_basic.c +++ b/src/fz_basic.c @@ -22,10 +22,10 @@ void fz_mux(word_t *a,word_t *b,word_t *o,size_t len,wbool_t sel){ } } -void fz_frombool(wbool_t b,word_t *o,size_t len){ - o[0] = b; +void fz_frombool(word_t *a,size_t len,wbool_t b){ + a[0] = b; for(size_t x = 1;x < len;x++){ - o[x] = 0; + a[x] = 0; } } |