summaryrefslogtreecommitdiffstats
path: root/src/sp-switch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-switch.h')
-rw-r--r--src/sp-switch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-switch.h b/src/sp-switch.h
index 8eafe6e7b..c2c98e3b3 100644
--- a/src/sp-switch.h
+++ b/src/sp-switch.h
@@ -55,7 +55,7 @@ private:
};
struct SPSwitch : public SPGroup {
- void resetChildEvaluated() { ((CSwitch *)group)->_reevaluate(); }
+ void resetChildEvaluated() { (static_cast<CSwitch *>(group))->_reevaluate(); }
};
struct SPSwitchClass : public SPGroupClass {