From 52d20ef124bafc51d982b34d127e7d9524d1a409 Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <e.dolstra@tudelft.nl>
Date: Sun, 25 Dec 2005 02:02:29 +0000
Subject: [PATCH] * Hack around a GCC 2.95 bug.

---
 src/libstore/store.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libstore/store.cc b/src/libstore/store.cc
index 2ab52301f..9c68c3392 100644
--- a/src/libstore/store.cc
+++ b/src/libstore/store.cc
@@ -294,7 +294,7 @@ static bool isRealisablePath(const Transaction & txn, const Path & path)
 
 static string addPrefix(const string & prefix, const string & s)
 {
-    return prefix + string(1, 0) + s;
+    return prefix + string(1, (char) 0) + s;
 }
 
 
@@ -313,7 +313,7 @@ static PathSet getReferrers(const Transaction & txn, const Path & storePath)
 {
     PathSet referrers;
     Strings keys;
-    nixDB.enumTable(txn, dbReferrers, keys, storePath + string(1, 0));
+    nixDB.enumTable(txn, dbReferrers, keys, storePath + string(1, (char) 0));
     for (Strings::iterator i = keys.begin(); i != keys.end(); ++i)
         referrers.insert(stripPrefix(storePath, *i));
     return referrers;
-- 
GitLab