make dest output unsigned.
This commit is contained in:
parent
898c89a5b2
commit
e6f33b2793
@ -1255,10 +1255,10 @@ NAN_METHOD(FillTransaction) {
|
|||||||
ssData >> tx;
|
ssData >> tx;
|
||||||
|
|
||||||
// Destination output
|
// Destination output
|
||||||
int d_output = 0;
|
unsigned int d_output = 0;
|
||||||
if (options->Get(NanNew<String>("output"))->IsNumber()) {
|
if (options->Get(NanNew<String>("output"))->IsNumber()) {
|
||||||
d_output = options->Get(NanNew<String>("output"))->IntegerValue();
|
d_output = options->Get(NanNew<String>("output"))->IntegerValue();
|
||||||
if (d_output < 0 || d_output >= tx.vout.size()) {
|
if (d_output >= tx.vout.size()) {
|
||||||
return NanThrowError("Destination output does not exist");
|
return NanThrowError("Destination output does not exist");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user