Crypto.Pipe: Fixed warnings.

Fixes #10047.
parent 6cc50126
......@@ -30,12 +30,12 @@ protected void create(program|object|array(program|mixed) ... c) {
ciphers += ({ [object(.CipherState)]cc });
}
else if(programp(cc))
ciphers += ({ cc() });
ciphers += ({ ([program(.CipherState)]cc)() });
else if(arrayp(cc)) {
array acc = [array]cc;
if(!sizeof(acc)) error("Empty array as argument.\n");
if(!programp(acc[0])) error("First array element not program.\n");
ciphers += ({ ([program]acc[0])(@acc[1..]) });
ciphers += ({ ([program(.CipherState)]acc[0])(@acc[1..]) });
}
else
error("Wrong type in argument.\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment