Skip to content

Commit 998667d

Browse files
committed
Fix compiler warnings
* Inconsistent inline. * Integer constant is too large for 'long' type (with mips -mabi=n32).
1 parent 98ac2d7 commit 998667d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/njs_clang.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ njs_leading_zeros64(uint64_t x)
111111

112112
n = 0;
113113

114-
while ((x & 0x8000000000000000) == 0) {
114+
while ((x & 0x8000000000000000ULL) == 0) {
115115
n++;
116116
x <<= 1;
117117
}

src/njs_value.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <njs_main.h>
99

1010

11-
static njs_int_t njs_object_property_query(njs_vm_t *vm,
11+
njs_inline njs_int_t njs_object_property_query(njs_vm_t *vm,
1212
njs_property_query_t *pq, njs_object_t *object, uint32_t atom_id);
1313
static njs_int_t njs_array_property_query(njs_vm_t *vm,
1414
njs_property_query_t *pq, njs_array_t *array, uint32_t index,

src/njs_vmcode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2591,7 +2591,7 @@ njs_function_frame_create(njs_vm_t *vm, njs_value_t *value,
25912591
}
25922592

25932593

2594-
inline njs_object_t *
2594+
njs_object_t *
25952595
njs_function_new_object(njs_vm_t *vm, njs_value_t *constructor)
25962596
{
25972597
njs_value_t proto, bound;

0 commit comments

Comments
 (0)