Skip to content

Commit 94aabd9

Browse files
committed
fix type conversion
1 parent 4847af9 commit 94aabd9

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/DiffEngine/ProcessCleanup.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Collections.Generic;
1+
using System;
2+
using System.Collections.Generic;
23
using System.Linq;
34
using System.Management;
45
using System.Runtime.InteropServices;
@@ -86,7 +87,7 @@ from Win32_Process
8687
foreach (var process in collection)
8788
{
8889
var command = (string) process["CommandLine"];
89-
var id = (int) process["ProcessId"];
90+
var id = (int) Convert.ChangeType(process["ProcessId"], typeof(int));
9091
process.Dispose();
9192
yield return new ProcessCommand(command, id);
9293
}

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project>
33
<PropertyGroup>
44
<NoWarn>CS1591;CS0649</NoWarn>
5-
<Version>2.0.3</Version>
5+
<Version>2.0.4</Version>
66
<AssemblyVersion>1.0.0.0</AssemblyVersion>
77
<PackageTags>Json, Testing, Verify, Snapshot, Approvals</PackageTags>
88
<Description>Enables simple verification of complex models and documents.</Description>

0 commit comments

Comments
 (0)