@@ -55,7 +55,7 @@ static sxbp_direction_t sxbp_change_line_direction(
5555 sxbp_direction_t current ,
5656 sxbp_rotation_t turn
5757) {
58- return (sxbp_direction_t )(( current + (sxbp_direction_t )turn ) % 4 ) ;
58+ return (current + (sxbp_direction_t )turn ) % 4 ;
5959}
6060
6161/*
@@ -72,13 +72,13 @@ static sxbp_length_t sxbp_next_length(
7272 assert (direction <= SXBP_LEFT );
7373 switch (direction % 4u ) {
7474 case SXBP_UP :
75- return ( sxbp_length_t ) labs (bounds .y_max - location .y ) + 1 ;
75+ return labs (bounds .y_max - location .y ) + 1 ;
7676 case SXBP_RIGHT :
77- return ( sxbp_length_t ) labs (bounds .x_max - location .x ) + 1 ;
77+ return labs (bounds .x_max - location .x ) + 1 ;
7878 case SXBP_DOWN :
79- return ( sxbp_length_t ) labs (bounds .y_min - location .y ) + 1 ;
79+ return labs (bounds .y_min - location .y ) + 1 ;
8080 case SXBP_LEFT :
81- return ( sxbp_length_t ) labs (bounds .x_min - location .x ) + 1 ;
81+ return labs (bounds .x_min - location .x ) + 1 ;
8282 default :
8383 /*
8484 * NOTE: this case should never happen
@@ -158,7 +158,7 @@ sxbp_result_t sxbp_begin_figure(
158158 * the number of lines is the number of bits in the buffer
159159 * (byte count * 8) + 1 (for the extra starting line)
160160 */
161- figure -> size = ( sxbp_figure_size_t )( data -> size * 8 + 1 ) ;
161+ figure -> size = data -> size * 8 + 1 ;
162162 // use default options if `options` is `NULL`
163163 if (options == NULL ) {
164164 options = & SXBP_BEGIN_FIGURE_OPTIONS_DEFAULT ;
0 commit comments