1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-10 03:05:42 +00:00

Fix invalid pattern match in CircleF

This commit is contained in:
Oliver Booth 2022-06-01 15:33:44 +01:00
parent 9c1714b419
commit e182b0f821
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -1,4 +1,4 @@
using System.Drawing;
using System.Drawing;
using System.Numerics;
using X10D.Numerics;
@ -208,7 +208,7 @@ public readonly struct CircleF : IEquatable<CircleF>, IComparable<CircleF>, ICom
return 1;
}
if (obj is not Circle other)
if (obj is not CircleF other)
{
throw new ArgumentException($"Object must be of type {GetType()}");
}