Skip to content

Commit

Permalink
ft_isint() usages were updated
Browse files Browse the repository at this point in the history
  • Loading branch information
VBrazhnik committed Oct 26, 2018
1 parent a79907f commit 11b6544
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libft
6 changes: 3 additions & 3 deletions sources/is.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ t_bool is_room(char *str)
if (ft_strsplit_len(strsplit) == 3)
{
if (is_room_name(strsplit[0])
&& ft_isint(strsplit[1])
&& ft_isint(strsplit[2]))
&& ft_isint(strsplit[1], true)
&& ft_isint(strsplit[2], true))
result = true;
}
ft_strsplit_free(&strsplit);
Expand All @@ -83,7 +83,7 @@ t_bool is_location(t_lem_in *lem_in, char *str)
if (!(room_name = ft_strsub(dash + 1, 0, ft_strlen(dash + 1))))
terminate(ERR_LOC_PARSING);
if (find_room(lem_in, room_name)
&& ft_isint(ant_number)
&& ft_isint(ant_number, true)
&& ft_atoi(ant_number) >= 1
&& ft_atoi(ant_number) <= lem_in->ants_start)
result = true;
Expand Down
2 changes: 1 addition & 1 deletion sources/parse_ants.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void parse_ants(t_lem_in *lem_in, t_line **current, t_line **lines)
{
if (*current || ((*current) = read_next_line(lines)))
{
if (ft_isint((*current)->content))
if (ft_isint((*current)->content, true))
{
lem_in->ants_start = ft_atoi((*current)->content);
(*current) = NULL;
Expand Down

0 comments on commit 11b6544

Please sign in to comment.