Commit d4730bfd7d7c65850221083dcaf837a3a5672fe8

Authored by Loic Dachary
1 parent 87f30108
Exists in master

add missing return value to functions that require it

Signed-off-by: Loic Dachary <loic@dachary.org>
Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
src/galois.c
... ... @@ -250,6 +250,7 @@ int galois_single_multiply(int x, int y, int w)
250 250 return gfp_array[w]->multiply.w32(gfp_array[w], x, y);
251 251 } else {
252 252 fprintf(stderr, "ERROR -- Galois field not implemented for w=%d\n", w);
  253 + return 0;
253 254 }
254 255 }
255 256  
... ... @@ -266,6 +267,7 @@ int galois_single_divide(int x, int y, int w)
266 267 return gfp_array[w]->divide.w32(gfp_array[w], x, y);
267 268 } else {
268 269 fprintf(stderr, "ERROR -- Galois field not implemented for w=%d\n", w);
  270 + return 0;
269 271 }
270 272 }
271 273  
... ...