From 0dcee7baac528651185e8b19e75718a6a3feee1a Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Fri, 2 Nov 2018 05:57:27 +0000 Subject: [PATCH] changed ffi.c to use moo_seterrwithsyserr() --- moo/mod/ffi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moo/mod/ffi.c b/moo/mod/ffi.c index 401c53a..98558ec 100644 --- a/moo/mod/ffi.c +++ b/moo/mod/ffi.c @@ -113,7 +113,7 @@ static moo_pfrc_t pf_open (moo_t* moo, moo_mod_t* mod, moo_ooi_t nargs) dc = dcNewCallVM (4096); /* TODO: right size? */ if (!dc) { - moo_seterrnum (moo, moo_syserr_to_errnum(errno)); + moo_seterrwithsyserr (moo, 0, errno); moo->vmprim.dl_close (moo, handle); goto softfail; }