aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/Manual.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/Manual.hxx b/src/util/Manual.hxx
index 6f080ff29..6ba932bdd 100644
--- a/src/util/Manual.hxx
+++ b/src/util/Manual.hxx
@@ -95,13 +95,15 @@ public:
T &Get() {
assert(initialized);
- return *(T *)data;
+ void *p = static_cast<void *>(data);
+ return *static_cast<T *>(p);
}
const T &Get() const {
assert(initialized);
- return *(const T *)data;
+ const void *p = static_cast<const void *>(data);
+ return *static_cast<const T *>(p);
}
operator T &() {