Date:2013-01-31 18:44:42 (6 years 4 months ago)
Author:Werner Almesberger
Commit:f9b3c36c6b58399e1ea715a9a37592682bf01fd1
Message:ubb-la/gui.c (gui): the upper bound for "pos" is nibbles-skip-1, not "nibbles"

Files: ubb-la/gui.c (1 diff)

Change Details

ubb-la/gui.c
460460                    break;
461461                case SDLK_RIGHT:
462462                    pos += pos_step(zoom);
463                    if (pos > nibbles-1)
464                        pos = nibbles-1;
463                    if (pos > nibbles-skip-1)
464                        pos = nibbles-skip-1;
465465                    break;
466466                case SDLK_RETURN:
467467                case SDLK_q:

Archive Download the corresponding diff file

Branches:
master



interactive