diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-03-22 14:06:11 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-03-22 14:06:11 -0300 |
| commit | 9fa63a62682c1353eeabd4575152941fa6f3e70f (patch) | |
| tree | 1aad2dd0de78388f6be134399ae4183692ce377f /ltablib.c | |
| parent | 0593256707ceddb1bc9cd4b25b822a7fbcfedd66 (diff) | |
| download | lua-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -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 | */ |
| 332 | static void auxsort (lua_State *L, IdxT lo, IdxT up, | 332 | static 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 */ |
