diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-08-19T10·35+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-08-19T10·35+0200 |
commit | d308aeaf53b7324af98dfa949a747526c241ef30 (patch) | |
tree | acae7f07b45d26007e8a6bbc3d6c8bfa1bf5e34c /src/libutil/util.cc | |
parent | 297b762513ad416582c0850095506f802ff5b1bb (diff) |
Store Nix integers as longs
So on 64-bit systems, integers are now 64-bit. Fixes #158.
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r-- | src/libutil/util.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index bc07a84f4d8d..5a88a158c389 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -1083,14 +1083,6 @@ bool statusOk(int status) } -string int2String(int n) -{ - std::ostringstream str; - str << n; - return str.str(); -} - - bool hasSuffix(const string & s, const string & suffix) { return s.size() >= suffix.size() && string(s, s.size() - suffix.size()) == suffix; |