OSDN Git Service

Windows 8 (Windows Developer Preview, Build 8102) temporary supportのコーディングミスを修正
authorunknown <tom@.(none)>
Sat, 22 Oct 2011 03:42:00 +0000 (12:42 +0900)
committerunknown <tom@.(none)>
Sat, 22 Oct 2011 03:42:00 +0000 (12:42 +0900)
na-get-lib/NaGet.Packages/Platform.cs

index 47af628..f97803a 100644 (file)
@@ -136,8 +136,8 @@ namespace NaGet.Packages
 \r
                        // 当分の間、Windows 8 (仮称) は Windows 7 のアプリは使えるようにしておく\r
                        if (thisOs.HasValue && thisOs.Value == PlatformOSType.WIN8) {\r
-                               return Array.BinarySearch(OsType, PlatformOSType.WIN7)\r
-                                   || Array.BinarySearch(OsType, PlatformOSType.WIN8);\r
+                               return (Array.BinarySearch(OsType, PlatformOSType.WIN7) >= 0)\r
+                                       || (Array.BinarySearch(OsType, PlatformOSType.WIN8) >= 0);\r
                        }\r
 \r
                        return thisOs != null && Array.BinarySearch(OsType, (PlatformOSType) thisOs) >= 0;\r