From 29dce6acb008ec33ab434bf9120830225d85d4c9 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Wed, 14 Nov 2001 14:44:34 +0000 Subject: [PATCH] trying again to fix the bustage on the ports --- layout/base/nsPresContext.cpp | 3 +-- layout/base/src/nsPresContext.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/layout/base/nsPresContext.cpp b/layout/base/nsPresContext.cpp index 5b20edd06b28..0c64f89dee1a 100644 --- a/layout/base/nsPresContext.cpp +++ b/layout/base/nsPresContext.cpp @@ -852,8 +852,7 @@ PR_STATIC_CALLBACK(PRBool) set_animation_mode(nsHashKey *aKey, void *aData, void nsImageLoader *loader = NS_REINTERPRET_CAST(nsImageLoader*, sup); nsCOMPtr imgReq; loader->GetRequest(getter_AddRefs(imgReq)); - PRUint32 mode = (PRUint32)closure; - SetImgAnimModeOnImgReq(imgReq, (PRUint16)mode); + SetImgAnimModeOnImgReq(imgReq, (PRUint16)NS_PTR_TO_INT32(closure)); return PR_TRUE; } diff --git a/layout/base/src/nsPresContext.cpp b/layout/base/src/nsPresContext.cpp index 5b20edd06b28..0c64f89dee1a 100644 --- a/layout/base/src/nsPresContext.cpp +++ b/layout/base/src/nsPresContext.cpp @@ -852,8 +852,7 @@ PR_STATIC_CALLBACK(PRBool) set_animation_mode(nsHashKey *aKey, void *aData, void nsImageLoader *loader = NS_REINTERPRET_CAST(nsImageLoader*, sup); nsCOMPtr imgReq; loader->GetRequest(getter_AddRefs(imgReq)); - PRUint32 mode = (PRUint32)closure; - SetImgAnimModeOnImgReq(imgReq, (PRUint16)mode); + SetImgAnimModeOnImgReq(imgReq, (PRUint16)NS_PTR_TO_INT32(closure)); return PR_TRUE; }