From 42d03fc687a3983f449a5b16025f6abd8f3ff681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Tue, 19 Dec 2017 19:07:39 +0200 Subject: [PATCH] vendor: temporary duktape fix --- vendor/gopkg.in/olebedev/go-duktape.v3/api.go | 2 +- vendor/gopkg.in/olebedev/go-duktape.v3/duktape.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.