diff options
author | John Szakmeister <john@szakmeister.net> | 2015-03-13 07:09:08 -0400 |
---|---|---|
committer | John Szakmeister <john@szakmeister.net> | 2015-03-13 07:09:08 -0400 |
commit | c015eabe13bd37fb7d129da20904dd172b0bd3a1 (patch) | |
tree | 1b4a910ce85a78a265d2b2c708e3d47b7da08826 /src/nvim/hardcopy.c | |
parent | b5bb6269b0f27c5192eaed6a069ba564c278760a (diff) | |
parent | 9925b3a0477e5af348a8348544e69a65a9222c1b (diff) | |
download | rneovim-c015eabe13bd37fb7d129da20904dd172b0bd3a1.tar.gz rneovim-c015eabe13bd37fb7d129da20904dd172b0bd3a1.tar.bz2 rneovim-c015eabe13bd37fb7d129da20904dd172b0bd3a1.zip |
Merge pull request #2118 from rev112/fix_redundant_cast
Remove redundant casts
Diffstat (limited to 'src/nvim/hardcopy.c')
-rw-r--r-- | src/nvim/hardcopy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/hardcopy.c b/src/nvim/hardcopy.c index db81746d73..f5eed26a2d 100644 --- a/src/nvim/hardcopy.c +++ b/src/nvim/hardcopy.c @@ -1988,7 +1988,7 @@ static void prt_page_margins(double width, double height, double *left, double * static void prt_font_metrics(int font_scale) { prt_line_height = (double)font_scale; - prt_char_width = (double)PRT_PS_FONT_TO_USER(font_scale, prt_ps_font->wx); + prt_char_width = PRT_PS_FONT_TO_USER(font_scale, prt_ps_font->wx); } @@ -2027,10 +2027,10 @@ static int prt_get_lpp(void) * font height (based on its bounding box) and the line height, handling the * case where the font height can exceed the line height. */ - prt_bgcol_offset = (double)PRT_PS_FONT_TO_USER(prt_line_height, + prt_bgcol_offset = PRT_PS_FONT_TO_USER(prt_line_height, prt_ps_font->bbox_min_y); if ((prt_ps_font->bbox_max_y - prt_ps_font->bbox_min_y) < 1000.0) { - prt_bgcol_offset -= (double)PRT_PS_FONT_TO_USER(prt_line_height, + prt_bgcol_offset -= PRT_PS_FONT_TO_USER(prt_line_height, (1000.0 - (prt_ps_font->bbox_max_y - prt_ps_font->bbox_min_y)) / 2); } |