comparison src/layout.c @ 1177:5a20c47e7a14

Fix up unsigned expression always true/false warnings.
author zas_
date Tue, 25 Nov 2008 17:01:03 +0000
parents 0bea79d87065
children 31402ecb2aed
comparison
equal deleted inserted replaced
1176:d3e51e1a02f8 1177:5a20c47e7a14
1920 1920
1921 /* default layout */ 1921 /* default layout */
1922 1922
1923 layout_config_parse(options->layout.style, options->layout.order, 1923 layout_config_parse(options->layout.style, options->layout.order,
1924 &lw->dir_location, &lw->file_location, &lw->image_location); 1924 &lw->dir_location, &lw->file_location, &lw->image_location);
1925 lw->dir_view_type = CLAMP(options->layout.dir_view_type, 0, VIEW_DIR_TYPES_COUNT - 1); 1925 lw->dir_view_type = options->layout.dir_view_type;
1926 lw->file_view_type = CLAMP(options->layout.file_view_type, 0, VIEW_FILE_TYPES_COUNT - 1); 1926 if (lw->dir_view_type >= VIEW_DIR_TYPES_COUNT) lw->dir_view_type = 0;
1927 lw->file_view_type = options->layout.file_view_type;
1928 if (lw->file_view_type >= VIEW_FILE_TYPES_COUNT) lw->file_view_type = 0;
1927 1929
1928 /* divider positions */ 1930 /* divider positions */
1929 1931
1930 if (options->layout.save_window_positions) 1932 if (options->layout.save_window_positions)
1931 { 1933 {