diff --git a/vendor/gopkg.in/olebedev/go-duktape.v3/api.go b/vendor/gopkg.in/olebedev/go-duktape.v3/api.go index ec60806812..6617ec23db 100644 --- a/vendor/gopkg.in/olebedev/go-duktape.v3/api.go +++ b/vendor/gopkg.in/olebedev/go-duktape.v3/api.go @@ -973,7 +973,7 @@ func (d *Context) PushBuffer(size int, dynamic bool) unsafe.Pointer { } // See: http://duktape.org/api.html#duk_push_c_function -func (d *Context) PushCFunction(fn *[0]byte, nargs int) int { +func (d *Context) PushCFunction(fn *[0]byte, nargs int64) int { return int(C.duk_push_c_function(d.duk_context, fn, C.duk_idx_t(nargs))) } diff --git a/vendor/gopkg.in/olebedev/go-duktape.v3/duktape.h b/vendor/gopkg.in/olebedev/go-duktape.v3/duktape.h index fdbbc01d8a..595cd77ec7 100755 --- a/vendor/gopkg.in/olebedev/go-duktape.v3/duktape.h +++ b/vendor/gopkg.in/olebedev/go-duktape.v3/duktape.h @@ -284,7 +284,7 @@ struct duk_time_components { /* Indicates that a native function does not have a fixed number of args, * and the argument stack should not be capped/extended at all. */ -#define DUK_VARARGS ((duk_uint_t) (-1)) +#define DUK_VARARGS ((duk_int_t) (-1)) /* Number of value stack entries (in addition to actual call arguments) * guaranteed to be allocated on entry to a Duktape/C function.