summaryrefslogtreecommitdiffstats
path: root/js/public/Utility.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/public/Utility.h')
-rw-r--r--js/public/Utility.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/public/Utility.h b/js/public/Utility.h
index 68de3004a..99712faa8 100644
--- a/js/public/Utility.h
+++ b/js/public/Utility.h
@@ -391,7 +391,7 @@ js_delete_poison(const T* p)
{
if (p) {
p->~T();
- memset(const_cast<T*>(p), 0x3B, sizeof(T));
+ memset(static_cast<void*>(const_cast<T*>(p)), 0x3B, sizeof(T));
js_free(const_cast<T*>(p));
}
}