mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
* GCC 2.95 compatibility.
This commit is contained in:
parent
1d2460ee5d
commit
1440419b45
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ static string addPrefix(const string & prefix, const string & s)
|
||||||
static string stripPrefix(const string & prefix, const string & s)
|
static string stripPrefix(const string & prefix, const string & s)
|
||||||
{
|
{
|
||||||
if (s.size() <= prefix.size() ||
|
if (s.size() <= prefix.size() ||
|
||||||
s.compare(0, prefix.size(), prefix) != 0 ||
|
string(s, 0, prefix.size()) != prefix ||
|
||||||
s[prefix.size()] != 0)
|
s[prefix.size()] != 0)
|
||||||
throw Error(format("string `%1%' is missing prefix `%2%'")
|
throw Error(format("string `%1%' is missing prefix `%2%'")
|
||||||
% s % prefix);
|
% s % prefix);
|
||||||
|
|
Loading…
Reference in a new issue