Skip to content

Commit 65b35ed

Browse files
jhaygood86eXpl0it3r
authored andcommitted
Fix CalcSerializer
1 parent 8b7a4c8 commit 65b35ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Source/HtmlRenderer/Core/CssEngine/Calc/CalcSerializer.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static string Serialize(CalcNode node, CalcCategory category)
4848
case UnaryCalcNode unary:
4949
{
5050
var value = FoldAngle(unary.Operand);
51-
return value is null ? null : unary.Negative ? -value.Value : value.Value;
51+
return value is null ? null : (double?)(unary.Negative ? -value.Value : value.Value);
5252
}
5353

5454
case BinaryCalcNode binary when binary.Operator == '+' || binary.Operator == '-':

0 commit comments

Comments
 (0)