falcon: conversion warning

This commit is contained in:
John M. Schanck 2020-09-17 11:25:08 -04:00 committed by Kris Kwiatkowski
parent c8cfccc488
commit 1ba4f503a7
2 changed files with 6 additions and 2 deletions

View File

@ -444,7 +444,9 @@ PQCLEAN_FALCON1024_CLEAN_comp_decode(
} }
} }
x[u] = (int16_t) m; x[u] = (int16_t) m;
if (s) x[u] = -x[u]; if (s) {
x[u] = (int16_t) -x[u];
}
} }
return v; return v;
} }

View File

@ -444,7 +444,9 @@ PQCLEAN_FALCON512_CLEAN_comp_decode(
} }
} }
x[u] = (int16_t) m; x[u] = (int16_t) m;
if (s) x[u] = -x[u]; if (s) {
x[u] = (int16_t) -x[u];
}
} }
return v; return v;
} }