mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-22 15:39:07 +00:00
falcon/test_boolean: conversion warning
This commit is contained in:
parent
bd1fcaabde
commit
c8cfccc488
@ -436,8 +436,8 @@ fpr_lt(fpr x, fpr y) {
|
|||||||
*/
|
*/
|
||||||
int cc0, cc1;
|
int cc0, cc1;
|
||||||
|
|
||||||
cc0 = ((*(int64_t *)&x - *(int64_t *)&y) >> 63) & 1;
|
cc0 = (int)((*(int64_t *)&x - *(int64_t *)&y) >> 63) & 1;
|
||||||
cc1 = ((*(int64_t *)&y - *(int64_t *)&x) >> 63) & 1;
|
cc1 = (int)((*(int64_t *)&y - *(int64_t *)&x) >> 63) & 1;
|
||||||
return cc0 ^ ((cc0 ^ cc1) & (int)((x & y) >> 63));
|
return cc0 ^ ((cc0 ^ cc1) & (int)((x & y) >> 63));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -436,8 +436,8 @@ fpr_lt(fpr x, fpr y) {
|
|||||||
*/
|
*/
|
||||||
int cc0, cc1;
|
int cc0, cc1;
|
||||||
|
|
||||||
cc0 = ((*(int64_t *)&x - *(int64_t *)&y) >> 63) & 1;
|
cc0 = (int)((*(int64_t *)&x - *(int64_t *)&y) >> 63) & 1;
|
||||||
cc1 = ((*(int64_t *)&y - *(int64_t *)&x) >> 63) & 1;
|
cc1 = (int)((*(int64_t *)&y - *(int64_t *)&x) >> 63) & 1;
|
||||||
return cc0 ^ ((cc0 ^ cc1) & (int)((x & y) >> 63));
|
return cc0 ^ ((cc0 ^ cc1) & (int)((x & y) >> 63));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user