OSDN Git Service

C#7.0でのビルドエラーを修正
authorKimura Youichi <kim.upsilon@bucyou.net>
Sat, 22 Jun 2019 13:51:47 +0000 (22:51 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 22 Jun 2019 13:51:47 +0000 (22:51 +0900)
OpenTween/Models/TabModel.cs

index e8c485d..c5f9fcc 100644 (file)
@@ -180,7 +180,7 @@ namespace OpenTween.Models
                 => index >= 0 && index < this.AllCount;
 
             var firstErrorId = indices.FirstOrDefault(x => !IsValidIndex(x));
-            if (firstErrorId != default)
+            if (firstErrorId != default(int))
                 throw new ArgumentOutOfRangeException($"Invalid index: {firstErrorId}", nameof(indices));
 
             var statusIds = indices.Select(x => this.GetStatusIdAt(x)).ToList();