Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lst_iter_next #4

Open
mymedia2 opened this issue Apr 25, 2015 · 0 comments
Open

lst_iter_next #4

mymedia2 opened this issue Apr 25, 2015 · 0 comments
Labels

Comments

@mymedia2
Copy link
Owner

Исключение в операции с плавающей точкой

Program received signal SIGFPE, Arithmetic exception.
0x0000000000400dd9 in lst_iter_next ()

LoL это то тут каким боком?

Видимо, там происходит деление на ноль на 65 строчке в list.c
l.offset = (t.offset + 1) % t.box->count;
Т.е. каким-то образом после выполнения lst_clear в каком-то звене поле count становиться равным нулю.

Нужно проверить, чтобы lst_iter_by_index в случае пустого списка возвращал нулевой итератор

@mymedia2 mymedia2 added the bug label Apr 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant