summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-04-21 10:33:28 (GMT)
committer Michael Drake <michael.drake@codethink.co.uk>2018-05-04 15:54:33 (GMT)
commitdcb12cab5120efc6ef8f10fc5cce64990b2892bd (patch)
tree695c623f160168a9ae85c5d595efb3eb80e4adc1
parent4bf20cc69389133a5b8ccea50943ac12a8470536 (diff)
downloadnetsurf-dcb12cab5120efc6ef8f10fc5cce64990b2892bd.tar.gz
netsurf-dcb12cab5120efc6ef8f10fc5cce64990b2892bd.tar.bz2
Duktape: Make declarations match definitions for fastint-enabled functions.
-rw-r--r--content/handlers/javascript/duktape/duktape.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/handlers/javascript/duktape/duktape.c b/content/handlers/javascript/duktape/duktape.c
index 914dbad..6ded27a 100644
--- a/content/handlers/javascript/duktape/duktape.c
+++ b/content/handlers/javascript/duktape/duktape.c
@@ -1401,7 +1401,7 @@ typedef struct {
#if 0
DUK_INTERNAL_DECL duk_double_t duk_tval_get_number_unpacked(duk_tval *tv);
#endif
-DUK_INTERNAL_DECL duk_double_t duk_tval_get_number_unpacked_fastint(duk_tval *tv);
+DUK_INTERNAL_DECL DUK_INLINE duk_double_t duk_tval_get_number_unpacked_fastint(duk_tval *tv);
#endif
#endif /* DUK_USE_PACKED_TVAL */
@@ -1443,7 +1443,7 @@ DUK_INTERNAL_DECL duk_double_t duk_tval_get_number_unpacked_fastint(duk_tval *tv
#define DUK_FASTINT_MAX (DUK_I64_CONSTANT(0x7fffffffffff))
#define DUK_FASTINT_BITS 48
-DUK_INTERNAL_DECL void duk_tval_set_number_chkfast_fast(duk_tval *tv, duk_double_t x);
+DUK_INTERNAL_DECL DUK_INLINE void duk_tval_set_number_chkfast_fast(duk_tval *tv, duk_double_t x);
DUK_INTERNAL_DECL void duk_tval_set_number_chkfast_slow(duk_tval *tv, duk_double_t x);
#endif