[PATCH] D41319: libcxx: Fix for basic_stringbuf::seekoff() after r320604.

Marshall Clow via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 19 14:49:40 PST 2017


mclow.lists added inline comments.


================
Comment at: libcxx/include/sstream:580
         return pos_type(-1);
+    ptrdiff_t __hm = __hm_ == nullptr ? 0 : __hm_ - __str_.data();
     off_type __noff;
----------------
This can be const.


https://reviews.llvm.org/D41319





More information about the cfe-commits mailing list