mirror of https://github.com/odrling/Aegisub
Fix to some 64-bit compatibility warnings in auto4_perl (note: please cast to size_t before casting to wxThread::ExitCode in the future)
Originally committed to SVN as r1830.
This commit is contained in:
parent
542b8a1a61
commit
6487948d10
|
@ -468,12 +468,12 @@ namespace Automation4 {
|
||||||
ExitCode ec = NULL;
|
ExitCode ec = NULL;
|
||||||
switch(type) {
|
switch(type) {
|
||||||
case CALL:
|
case CALL:
|
||||||
if(sv) ec = (ExitCode)call_sv(sv, flags);
|
if(sv) ec = (ExitCode)((size_t)call_sv(sv, flags));
|
||||||
else if(pv) ec = (ExitCode)call_pv(pv, flags);
|
else if(pv) ec = (ExitCode)((size_t)call_pv(pv, flags));
|
||||||
break;
|
break;
|
||||||
case EVAL:
|
case EVAL:
|
||||||
if(sv) ec = (ExitCode)eval_sv(sv, flags);
|
if(sv) ec = (ExitCode)((size_t)eval_sv(sv, flags));
|
||||||
else if(pv) ec = (ExitCode)eval_pv(pv, flags);
|
else if(pv) ec = (ExitCode)((size_t)eval_pv(pv, flags));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(SvTRUE(ERRSV)) {
|
if(SvTRUE(ERRSV)) {
|
||||||
|
|
Loading…
Reference in New Issue