diff --git a/src/SixLabors.Core/Helpers/HashHelpers.cs b/src/SixLabors.Core/Helpers/HashHelpers.cs
index b1e7ce660..934384238 100644
--- a/src/SixLabors.Core/Helpers/HashHelpers.cs
+++ b/src/SixLabors.Core/Helpers/HashHelpers.cs
@@ -1,10 +1,12 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
+using System;
+
namespace SixLabors
{
///
- /// Lifted from coreFX repo
+ /// Provides a set of helpers for combining object hashes.
///
internal static class HashHelpers
{
@@ -16,6 +18,8 @@ namespace SixLabors
/// Returns a hash code for the provided hash codes.
public static int Combine(int h1, int h2)
{
+ // Lifted from coreFX repo
+
unchecked
{
// RyuJIT optimizes this to use the ROL instruction
@@ -54,9 +58,8 @@ namespace SixLabors
int hash = Combine(h1, h2);
hash = Combine(hash, h3);
- hash = Combine(hash, h4);
- return hash;
+ return Combine(hash, h4);
}
}
}
\ No newline at end of file