Bug 1404147 Fixed Signed/Unsigned comparison of HRESULT r=cpearce
authorTom Ritter <tom@mozilla.com>
Mon, 02 Oct 2017 14:28:24 -0500
changeset 675180 cc50c0ad627c44d3dba5344c001018bba69f37da
parent 675179 720ab0ee359a64279628fbf4b908d1bccfa7425b
child 675181 f4cb27775f6289f7284b1772165208210f76ba36
push id83058
push userbwerth@mozilla.com
push dateWed, 04 Oct 2017 23:14:13 +0000
reviewerscpearce
bugs1404147
milestone58.0a1
Bug 1404147 Fixed Signed/Unsigned comparison of HRESULT r=cpearce MozReview-Commit-ID: GpOCB2TKGG7
dom/media/fake-cdm/cdm-test-output-protection.h
--- a/dom/media/fake-cdm/cdm-test-output-protection.h
+++ b/dom/media/fake-cdm/cdm-test-output-protection.h
@@ -37,17 +37,17 @@ static BOOL CALLBACK EnumDisplayMonitors
 
   ULONG numVideoOutputs = 0;
   IOPMVideoOutput** opmVideoOutputArray = nullptr;
   HRESULT hr = sOPMGetVideoOutputsFromHMONITORProc(hMonitor,
                                                    OPM_VOS_OPM_SEMANTICS,
                                                    &numVideoOutputs,
                                                    &opmVideoOutputArray);
   if (S_OK != hr) {
-    if (0x8007001f != hr && 0x80070032 != hr && 0xc02625e5 != hr) {
+    if ((HRESULT)0x8007001f != hr && (HRESULT)0x80070032 != hr && (HRESULT)0xc02625e5 != hr) {
       char msg[100];
       sprintf(msg, "FAIL OPMGetVideoOutputsFromHMONITOR call failed: HRESULT=0x%08x", hr);
       failureMsgs->push_back(msg);
     }
     return true;
   }
 
   DISPLAY_DEVICEA dd;