summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-05-03 22:15:59 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-05-03 22:15:59 (GMT)
commite61b61a3f03fc95c9f9c7271fb705df4e84f31e0 (patch)
treef9f6ecc37d850900d1d406840508d7f3f77e910d /generic/ttk
parent1d327cff35030c574230508e600a5f587b64b321 (diff)
downloadtk-e61b61a3f03fc95c9f9c7271fb705df4e84f31e0.zip
tk-e61b61a3f03fc95c9f9c7271fb705df4e84f31e0.tar.gz
tk-e61b61a3f03fc95c9f9c7271fb705df4e84f31e0.tar.bz2
Fix more type pun warnings (those not found by my local version of GCC)
Diffstat (limited to 'generic/ttk')
-rw-r--r--generic/ttk/ttkLabel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/ttk/ttkLabel.c b/generic/ttk/ttkLabel.c
index 8dd1c63..58bdceb 100644
--- a/generic/ttk/ttkLabel.c
+++ b/generic/ttk/ttkLabel.c
@@ -1,4 +1,4 @@
-/* $Id: ttkLabel.c,v 1.7 2007/01/11 19:59:26 jenglish Exp $
+/* $Id: ttkLabel.c,v 1.8 2007/05/03 22:15:59 dkf Exp $
*
* text, image, and label elements.
*
@@ -506,8 +506,10 @@ static Ttk_ElementOptionSpec LabelElementOptions[] =
static void LabelSetup(
LabelElement *c, Tk_Window tkwin, Ttk_State state)
{
+ Ttk_Compound *compoundPtr = &c->compound;
+
Tk_GetPixelsFromObj(NULL,tkwin,c->spaceObj,&c->space);
- Ttk_GetCompoundFromObj(NULL,c->compoundObj,(int*)&c->compound);
+ Ttk_GetCompoundFromObj(NULL,c->compoundObj,(int*)compoundPtr);
/*
* Deal with TTK_COMPOUND_NONE.