mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-26 11:28:48 +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>
|
||||
public static bool IsPrime(this sbyte value)
|
||||
{
|
||||
return ((short)value).IsPrime();
|
||||
return ((long)value).IsPrime();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user