mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-26 13:38:47 +00:00
Cast directly to long, not short, for IsPrime
This commit is contained in:
parent
86b6a94adc
commit
f6c08fedf3
@ -44,7 +44,7 @@ public static class SByteExtensions
|
|||||||
/// </returns>
|
/// </returns>
|
||||||
public static bool IsPrime(this sbyte value)
|
public static bool IsPrime(this sbyte value)
|
||||||
{
|
{
|
||||||
return ((short)value).IsPrime();
|
return ((long)value).IsPrime();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user