aboutsummaryrefslogtreecommitdiff
path: root/src/ringct/rctSigs.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-10-11 19:29:36 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-10-15 11:58:39 +0100
commite06a4daf334ebb8e6f114aadd475ef7816fe3d00 (patch)
tree4a0c5734602e0f8d5014780ff8940ca6f518462a /src/ringct/rctSigs.cpp
parentringct: reserve space in vectors to avoid excessive reallocation (diff)
downloadmonero-e06a4daf334ebb8e6f114aadd475ef7816fe3d00.tar.xz
ringct: remove unneeded type conversions
Diffstat (limited to '')
-rw-r--r--src/ringct/rctSigs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ringct/rctSigs.cpp b/src/ringct/rctSigs.cpp
index fd2912684..71aec558b 100644
--- a/src/ringct/rctSigs.cpp
+++ b/src/ringct/rctSigs.cpp
@@ -43,7 +43,7 @@ namespace rct {
//Ver Verifies that signer knows an "x" such that xG = one of P1 or P2
//These are called in the below ASNL sig generation
- void GenSchnorrNonLinkable(key & L1, key & s1, key & s2, const key & x, const key & P1, const key & P2, int index) {
+ void GenSchnorrNonLinkable(key & L1, key & s1, key & s2, const key & x, const key & P1, const key & P2, unsigned int index) {
key c1, c2, L2;
key a = skGen();
if (index == 0) {
@@ -95,7 +95,7 @@ namespace rct {
asnlSig rv;
rv.s = zero();
for (j = 0; j < ATOMS; j++) {
- GenSchnorrNonLinkable(rv.L1[j], s1[j], rv.s2[j], x[j], P1[j], P2[j], (int)indices[j]);
+ GenSchnorrNonLinkable(rv.L1[j], s1[j], rv.s2[j], x[j], P1[j], P2[j], indices[j]);
sc_add(rv.s.bytes, rv.s.bytes, s1[j].bytes);
}
return rv;