Skip to content

Commit 2a17ffb

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

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
@@ -622,7 +622,7 @@ njs_property_query(njs_vm_t *vm, njs_property_query_t *pq, njs_value_t *value,
622622
}
623623

624624

625-
njs_inline njs_int_t
625+
static njs_int_t
626626
njs_object_property_query(njs_vm_t *vm, njs_property_query_t *pq,
627627
njs_object_t *object, uint32_t atom_id)
628628
{

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)