(pixel_to_char_size): Cast args to int.
authorRichard M. Stallman <rms@gnu.org>
Wed, 6 Mar 1996 06:22:06 +0000 (06:22 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 6 Mar 1996 06:22:06 +0000 (06:22 +0000)
src/widget.c

index de25e2d..c2c6bea 100644 (file)
@@ -193,8 +193,8 @@ pixel_to_char_size (ew, pixel_width, pixel_height, char_width, char_height)
      int* char_height;
 {
   struct frame* f = ew->emacs_frame.frame;
-  *char_width = PIXEL_TO_CHAR_WIDTH (f, pixel_width);
-  *char_height = PIXEL_TO_CHAR_HEIGHT (f, pixel_height);
+  *char_width = PIXEL_TO_CHAR_WIDTH (f, (int) pixel_width);
+  *char_height = PIXEL_TO_CHAR_HEIGHT (f, (int) pixel_height);
 }
 
 static void