Skip to content

Commit

Permalink
IsTruthyValue, fixed decimal cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuele Zavallone committed May 16, 2019
1 parent 7ee5f41 commit 8fef46d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stubble.Core/Contexts/Context.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public bool IsTruthyValue(object value)

if (value is decimal)
{
return (int)value != 0m;
return (decimal)value != 0m;
}

if (value is float)
Expand Down

0 comments on commit 8fef46d

Please sign in to comment.