mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
vendor: temporary duktape fix
This commit is contained in:
parent
4de03429af
commit
42d03fc687
2 changed files with 2 additions and 2 deletions
2
vendor/gopkg.in/olebedev/go-duktape.v3/api.go
generated
vendored
2
vendor/gopkg.in/olebedev/go-duktape.v3/api.go
generated
vendored
|
|
@ -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)))
|
||||
}
|
||||
|
||||
|
|
|
|||
2
vendor/gopkg.in/olebedev/go-duktape.v3/duktape.h
generated
vendored
2
vendor/gopkg.in/olebedev/go-duktape.v3/duktape.h
generated
vendored
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue