fix MSVS warning

This commit is contained in:
Matthias J. Kannwischer 2020-03-05 11:31:28 +01:00 提交者 Kris Kwiatkowski
父節點 e93a6bef1f
當前提交 999b76cb90
共有 4 個檔案被更改,包括 4 行新增4 行删除

查看文件

@ -22,7 +22,7 @@ int PQCLEAN_NEWHOPE1024CCA_CLEAN_verify(const unsigned char *a, const unsigned c
r |= a[i] ^ b[i];
}
r = (-r) >> 63;
r = (uint64_t)(-(int64_t)r) >> 63;
return (int)r;
}

查看文件

@ -22,7 +22,7 @@ int PQCLEAN_NEWHOPE1024CPA_CLEAN_verify(const unsigned char *a, const unsigned c
r |= a[i] ^ b[i];
}
r = (-r) >> 63;
r = (uint64_t)(-(int64_t)r) >> 63;
return (int)r;
}

查看文件

@ -22,7 +22,7 @@ int PQCLEAN_NEWHOPE512CCA_CLEAN_verify(const unsigned char *a, const unsigned ch
r |= a[i] ^ b[i];
}
r = (-r) >> 63;
r = (uint64_t)(-(int64_t)r) >> 63;
return (int)r;
}

查看文件

@ -22,7 +22,7 @@ int PQCLEAN_NEWHOPE512CPA_CLEAN_verify(const unsigned char *a, const unsigned ch
r |= a[i] ^ b[i];
}
r = (-r) >> 63;
r = (uint64_t)(-(int64_t)r) >> 63;
return (int)r;
}