summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixRFont.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-05-19 12:45:35 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-05-19 12:45:35 (GMT)
commit033e66e96af33c0ea2ee90e7a6eb6a63b9424f01 (patch)
tree329065a2785c3d6196bc67333bacb15c8379cce9 /unix/tkUnixRFont.c
parent87d12d1ccc63df37fd805599bf29388c1d164e36 (diff)
parent107e2400ee9876bbfd0b4712307f642290498194 (diff)
downloadtk-033e66e96af33c0ea2ee90e7a6eb6a63b9424f01.zip
tk-033e66e96af33c0ea2ee90e7a6eb6a63b9424f01.tar.gz
tk-033e66e96af33c0ea2ee90e7a6eb6a63b9424f01.tar.bz2
Slightly use of more "int" in stead of double, for 100% compatibility at script level.bug_434d294df
Diffstat (limited to 'unix/tkUnixRFont.c')
-rw-r--r--unix/tkUnixRFont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c
index b818a70..a08b95f 100644
--- a/unix/tkUnixRFont.c
+++ b/unix/tkUnixRFont.c
@@ -182,7 +182,7 @@ GetTkFontAttributes(
size = -ptsize;
} else if (XftPatternGetInteger(ftFont->pattern, XFT_PIXEL_SIZE, 0,
&pxsize) == XftResultMatch) {
- size = -pxsize;
+ size = (double)-pxsize;
} else {
size = 12.0;
}