mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 00:06:16 +02:00
Merge pull request #8525 from tweag/fix-i686-build
Don't assume the type of string::size_type
This commit is contained in:
commit
09320140b5
2 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ RewritingSink::RewritingSink(const std::string & from, const std::string & to, S
|
||||||
RewritingSink::RewritingSink(const StringMap & rewrites, Sink & nextSink)
|
RewritingSink::RewritingSink(const StringMap & rewrites, Sink & nextSink)
|
||||||
: rewrites(rewrites), nextSink(nextSink)
|
: rewrites(rewrites), nextSink(nextSink)
|
||||||
{
|
{
|
||||||
long unsigned int maxRewriteSize = 0;
|
std::string::size_type maxRewriteSize = 0;
|
||||||
for (auto & [from, to] : rewrites) {
|
for (auto & [from, to] : rewrites) {
|
||||||
assert(from.size() == to.size());
|
assert(from.size() == to.size());
|
||||||
maxRewriteSize = std::max(maxRewriteSize, from.size());
|
maxRewriteSize = std::max(maxRewriteSize, from.size());
|
||||||
|
|
|
@ -26,7 +26,7 @@ public:
|
||||||
struct RewritingSink : Sink
|
struct RewritingSink : Sink
|
||||||
{
|
{
|
||||||
const StringMap rewrites;
|
const StringMap rewrites;
|
||||||
long unsigned int maxRewriteSize;
|
std::string::size_type maxRewriteSize;
|
||||||
std::string prev;
|
std::string prev;
|
||||||
Sink & nextSink;
|
Sink & nextSink;
|
||||||
uint64_t pos = 0;
|
uint64_t pos = 0;
|
||||||
|
|
Loading…
Reference in a new issue