Skip to content

Commit

Permalink
Merge pull request #39739 from MichaelBelousov/fix/long-enum-fix-ride…
Browse files Browse the repository at this point in the history
…r-cast

fix underlying type of enum crashing cast in RiderPathManager
  • Loading branch information
akien-mga authored Jun 24, 2020
2 parents 8f5005b + 9f61f1e commit 04795d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace GodotTools.Build
{
public enum BuildTool
public enum BuildTool : long
{
MsBuildMono,
MsBuildVs,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace GodotTools
{
public enum ExternalEditorId
public enum ExternalEditorId : long
{
None,
VisualStudio, // TODO (Windows-only)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ public class ClassDecl
public string Name { get; }
public string Namespace { get; }
public bool Nested { get; }
public int BaseCount { get; }
public long BaseCount { get; }

public ClassDecl(string name, string @namespace, bool nested, int baseCount)
public ClassDecl(string name, string @namespace, bool nested, long baseCount)
{
Name = name;
Namespace = @namespace;
Expand Down Expand Up @@ -45,7 +45,7 @@ public static Error ParseFile(string filePath, out IEnumerable<ClassDecl> classe
(string)classDeclDict["name"],
(string)classDeclDict["namespace"],
(bool)classDeclDict["nested"],
(int)classDeclDict["base_count"]
(long)classDeclDict["base_count"]
));
}

Expand Down

0 comments on commit 04795d7

Please sign in to comment.