about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-12-25T02·02+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-12-25T02·02+0000
commit52d20ef124bafc51d982b34d127e7d9524d1a409 (patch)
tree89ad1d14b0ceda1a5817349534a32b7c175e902c /src
parent1440419b45dec876497b982f945bcfff8d0aea4b (diff)
* Hack around a GCC 2.95 bug.
Diffstat (limited to 'src')
-rw-r--r--src/libstore/store.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/store.cc b/src/libstore/store.cc
index 2ab52301fb57..9c68c3392b4f 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;