Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 238216 | Differences between
and this patch

Collapse All | Expand All

(-)src/eixTk/compare.h.orig (-1 / +2 lines)
Lines 41-47 Link Here
41
      if (size_result)
41
      if (size_result)
42
          return size_result;
42
          return size_result;
43
      // both strings have the same length, do string comparison
43
      // both strings have the same length, do string comparison
44
      return left.compare(lstart, std::string::npos, right, rstart, std::string::npos);
44
      return left.compare(lstart == std::string::npos ? 0 : lstart, std::string::npos, right, 
45
						  rstart == std::string::npos ? 0 : rstart, std::string::npos);
45
  }
46
  }
46
}
47
}
47
48

Return to bug 238216