Skip to content

Commit 4589430

Browse files
committed
style: minor coding style fixes.
This is a followup fix for commit 2d33927.
1 parent 9f6ec7f commit 4589430

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/lj_str.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ void lj_str_resize(lua_State *L, MSize newmask)
131131
}
132132

133133
static MSize
134-
lj_str_original_hash(const char *str, size_t lenx) {
134+
lj_str_original_hash(const char *str, size_t lenx)
135+
{
135136
MSize len = (MSize)lenx;
136137
MSize a, b, h = len;
137138

@@ -159,7 +160,8 @@ lj_str_original_hash(const char *str, size_t lenx) {
159160
}
160161

161162
MSize
162-
lj_str_indep_hash(GCstr *str) {
163+
lj_str_indep_hash(GCstr *str)
164+
{
163165
return lj_str_original_hash(strdata(str), str->len);
164166
}
165167

@@ -240,4 +242,3 @@ void LJ_FASTCALL lj_str_free(global_State *g, GCstr *s)
240242
g->strnum--;
241243
lj_mem_free(g, s, sizestring(s));
242244
}
243-

src/x64/src/lj_str_hash_x64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ static LJ_AINLINE uint32_t get_random_pos_unsafe(uint32_t chunk_sz_order,
203203
}
204204

205205
static LJ_NOINLINE uint32_t lj_str_hash_128_above(const char* str,
206-
uint32_t len)
206+
uint32_t len)
207207
{
208208
uint32_t chunk_num, chunk_sz, chunk_sz_log2, i, pos1, pos2;
209209
uint64_t h1, h2, v;

0 commit comments

Comments
 (0)