aboutsummaryrefslogtreecommitdiff
path: root/ltablib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-03-22 14:06:11 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-03-22 14:06:11 -0300
commit9fa63a62682c1353eeabd4575152941fa6f3e70f (patch)
tree1aad2dd0de78388f6be134399ae4183692ce377f /ltablib.c
parent0593256707ceddb1bc9cd4b25b822a7fbcfedd66 (diff)
downloadlua-9fa63a62682c1353eeabd4575152941fa6f3e70f.tar.gz
lua-9fa63a62682c1353eeabd4575152941fa6f3e70f.tar.bz2
lua-9fa63a62682c1353eeabd4575152941fa6f3e70f.zip
Some 'unsigned int' changed to 'unsigned'
'unsigned int' is too long sometimes. (We already write 'long' instead of 'long int'...)
Diffstat (limited to 'ltablib.c')
-rw-r--r--ltablib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ltablib.c b/ltablib.c
index 4c3f6900..a402daea 100644
--- a/ltablib.c
+++ b/ltablib.c
@@ -329,8 +329,7 @@ static IdxT choosePivot (IdxT lo, IdxT up, unsigned int rnd) {
329/* 329/*
330** Quicksort algorithm (recursive function) 330** Quicksort algorithm (recursive function)
331*/ 331*/
332static void auxsort (lua_State *L, IdxT lo, IdxT up, 332static void auxsort (lua_State *L, IdxT lo, IdxT up, unsigned rnd) {
333 unsigned int rnd) {
334 while (lo < up) { /* loop for tail recursion */ 333 while (lo < up) { /* loop for tail recursion */
335 IdxT p; /* Pivot index */ 334 IdxT p; /* Pivot index */
336 IdxT n; /* to be used later */ 335 IdxT n; /* to be used later */