Skip to content

Commit

Permalink
use size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jan 18, 2012
1 parent 73aad03 commit 8dfbdc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/ruby/util.h
Expand Up @@ -17,7 +17,7 @@ unsigned long ruby_scan_hex(const char *, size_t, size_t *);
#define scan_oct ruby_scan_oct
#define scan_hex ruby_scan_hex

void ruby_qsort(void *, const int, const int,
void ruby_qsort(void *, const size_t, const size_t,
int (*)(const void *, const void *, void *), void *);

void ruby_setenv(const char *, const char *);
Expand Down
2 changes: 1 addition & 1 deletion util.c
Expand Up @@ -578,7 +578,7 @@ typedef struct { char *LL, *RR; } stack_node; /* Stack structure for L,l,R,r */
((*cmp)(b,c,d)>0 ? b : ((*cmp)(a,c,d)<0 ? a : c)))

void
ruby_qsort(void* base, const int nel, const int size,
ruby_qsort(void* base, const size_t nel, const size_t size,
int (*cmp)(const void*, const void*, void*), void *d)
{
register char *l, *r, *m; /* l,r:left,right group m:median point */
Expand Down

0 comments on commit 8dfbdc2

Please sign in to comment.