Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
pic_length should return int type
Browse files Browse the repository at this point in the history
  • Loading branch information
nyuichi committed Aug 26, 2015
1 parent 98034b5 commit cc95240
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extlib/benz/include/picrin/pair.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pic_value pic_make_list(pic_state *, size_t, pic_value);
#define pic_push(pic, item, place) (place = pic_cons(pic, item, place))
#define pic_pop(pic, place) (place = pic_cdr(pic, place))

size_t pic_length(pic_state *, pic_value);
int pic_length(pic_state *, pic_value);
pic_value pic_reverse(pic_state *, pic_value);
pic_value pic_append(pic_state *, pic_value, pic_value);

Expand Down
4 changes: 2 additions & 2 deletions extlib/benz/pair.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ pic_make_list(pic_state *pic, size_t k, pic_value fill)
return list;
}

size_t
int
pic_length(pic_state *pic, pic_value obj)
{
size_t c = 0;
int c = 0;

if (! pic_list_p(obj)) {
pic_errorf(pic, "length: expected list, but got ~s", obj);
Expand Down

0 comments on commit cc95240

Please sign in to comment.