]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/blobdiff - zfec/zfec/fec.c
narrow types of k and m from unsigned to unsigned short
[tahoe-lafs/zfec.git] / zfec / zfec / fec.c
index 04a71324704cf05bc899beede576d8cdf89e0144..637498d02aa01244f175f41eedc621f8ad4fc650 100644 (file)
@@ -412,7 +412,7 @@ fec_free (fec_t *p) {
 }
 
 fec_t *
-fec_new(unsigned k, unsigned n) {
+fec_new(unsigned short k, unsigned short n) {
     unsigned row, col;
     gf *p, *tmp_m;
 
@@ -456,8 +456,8 @@ fec_new(unsigned k, unsigned n) {
     return retval;
 }
 
-/* To make sure that we stay within cache in the inner loops of fec_encode()
-   and fec_decode(). */
+/* To make sure that we stay within cache in the inner loops of fec_encode().  (It would
+   probably help to also do this for fec_decode(). */
 #ifndef STRIDE
 #define STRIDE 8192
 #endif