diff --git a/mozilla/content/html/content/src/nsGenericHTMLElement.cpp b/mozilla/content/html/content/src/nsGenericHTMLElement.cpp
index 5aa88905340..b01317c580e 100644
--- a/mozilla/content/html/content/src/nsGenericHTMLElement.cpp
+++ b/mozilla/content/html/content/src/nsGenericHTMLElement.cpp
@@ -3233,7 +3233,7 @@ nsGenericHTMLFormElement::AfterSetAttr(PRInt32 aNameSpaceID, nsIAtom* aName,
{
if (aNameSpaceID == kNameSpaceID_None) {
nsCOMPtr thisControl =
- do_QueryInterface(NS_STATIC_CAST(nsIContent, this));
+ do_QueryInterface(NS_STATIC_CAST(nsIContent*, this));
// add the control to the hashtable as needed