Browse Source

Fix EnumHelper<T>.IsDefined

pull/768/head
Anton Firsov 8 years ago
committed by GitHub
parent
commit
9a122870b0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/ImageSharp/MetaData/Profiles/Exif/ExifReader.cs

4
src/ImageSharp/MetaData/Profiles/Exif/ExifReader.cs

@ -567,8 +567,8 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif
[MethodImpl(InliningOptions.ShortMethod)] [MethodImpl(InliningOptions.ShortMethod)]
public static bool IsDefined(int value) public static bool IsDefined(int value)
{ {
return Array.BinarySearch(Values, 0, Values.Length, value) > 0; return Array.BinarySearch(Values, value) >= 0;
} }
} }
} }
} }

Loading…
Cancel
Save