Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2014-04-15 12:38:20 +0400
committernulltoken <emeric.fermas@gmail.com>2014-04-16 21:04:57 +0400
commitac394b41f27fe26a24b6d46a08b630abf02f72ab (patch)
tree0608304ecadaf4045dd5b7d3cde64dd683c98b3e /LibGit2Sharp/OdbBackend.cs
parent35ea14dd55582ba1dc4a8ad98e77ae656ee307e9 (diff)
Fix some issues pinpointed by Code Analysis
Diffstat (limited to 'LibGit2Sharp/OdbBackend.cs')
-rw-r--r--LibGit2Sharp/OdbBackend.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/LibGit2Sharp/OdbBackend.cs b/LibGit2Sharp/OdbBackend.cs
index 1862d26b..54994253 100644
--- a/LibGit2Sharp/OdbBackend.cs
+++ b/LibGit2Sharp/OdbBackend.cs
@@ -1,4 +1,5 @@
using System;
+using System.Globalization;
using System.IO;
using System.Runtime.InteropServices;
using LibGit2Sharp.Core;
@@ -569,7 +570,9 @@ namespace LibGit2Sharp
if (len.ToUInt64() > long.MaxValue)
{
throw new InvalidOperationException(
- string.Format("Provided length ({0}) exceeds long.MaxValue ({1}).",
+ string.Format(
+ CultureInfo.InvariantCulture,
+ "Provided length ({0}) exceeds long.MaxValue ({1}).",
len.ToUInt64(), long.MaxValue));
}