Store Nix integers as longs
So on 64-bit systems, integers are now 64-bit. Fixes #158.
This commit is contained in:
parent
297b762513
commit
d308aeaf53
9 changed files with 25 additions and 23 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue