Skip to content

Commit bc52cda

Browse files
simonysxludete
authored andcommitted
fix use int32_t instead of int type for risczero compile with (-march=rv32i, -mabi=ilp32)
1 parent 60b8164 commit bc52cda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/script/interpreter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ class CTransactionSignatureSerializer
13031303
// Serialize the nSequence
13041304
if (nInput != nIn && (fHashSingle || fHashNone))
13051305
// let the others update at will
1306-
::Serialize(s, int{0});
1306+
::Serialize(s, int32_t{0});
13071307
else
13081308
::Serialize(s, txTo.vin[nInput].nSequence);
13091309
}
@@ -1565,7 +1565,7 @@ bool SignatureHashSchnorr(uint256& hash_out, ScriptExecutionData& execdata, cons
15651565
}
15661566

15671567
template <class T>
1568-
uint256 SignatureHash(const CScript& scriptCode, const T& txTo, unsigned int nIn, int nHashType, const CAmount& amount, SigVersion sigversion, const PrecomputedTransactionData* cache)
1568+
uint256 SignatureHash(const CScript& scriptCode, const T& txTo, unsigned int nIn, int32_t nHashType, const CAmount& amount, SigVersion sigversion, const PrecomputedTransactionData* cache)
15691569
{
15701570
assert(nIn < txTo.vin.size());
15711571

0 commit comments

Comments
 (0)