Some bugfixes for lqmult in "same IP on different interfaces" situations.
[olsrd.git] / src / fpm.c
index 681f9a6..ad66a1a 100644 (file)
--- a/src/fpm.c
+++ b/src/fpm.c
 #ifndef NDEBUG
 
 fpm
-itofpm(int i)
+itofpm(sfpm i)
 {
-  fpm r;
-  assert(fpmtoi_def(FPM_MIN) <= i);
-  assert(i <= fpmtoi_def(FPM_INT_MAX));
-  r = (fpm) itofpm_def(i);
-  return r;
+  assert(FPM_MIN <= i && i <= FPM_MAX);
+  return itofpm_def(i);
 }
 
 fpm