فهرست منبع

pica: Add the ULL specifier in IsDefaultAttribute

This is necessary otherwise there are warnings about a 32-bit result being casted to a 64-bit value.
Lioncash 11 سال پیش
والد
کامیت
497f4bee0c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/video_core/pica.h

+ 1 - 1
src/video_core/pica.h

@@ -616,7 +616,7 @@ struct Regs {
         }
 
         inline bool IsDefaultAttribute(int id) const {
-            return (id >= 12) || (attribute_mask & (1 << id)) != 0;
+            return (id >= 12) || (attribute_mask & (1ULL << id)) != 0;
         }
 
         inline int GetNumTotalAttributes() const {