[libcxx-commits] [PATCH] D99520: [libcxx] Use integer division
Petr Hosek via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 29 12:00:05 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGbc4d3ca7bd44: [libcxx] Use integer division (authored by phosek).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99520/new/
https://reviews.llvm.org/D99520
Files:
libcxx/utils/gdb/libcxx/printers.py
Index: libcxx/utils/gdb/libcxx/printers.py
===================================================================
--- libcxx/utils/gdb/libcxx/printers.py
+++ libcxx/utils/gdb/libcxx/printers.py
@@ -439,7 +439,7 @@
def _list_it(self):
for bit in range(self.bit_count):
- word = math.floor(bit / self.bits_per_word)
+ word = bit // self.bits_per_word
word_bit = bit % self.bits_per_word
if self.values[word] & (1 << word_bit):
yield ("[%d]" % bit, 1)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99520.333954.patch
Type: text/x-patch
Size: 527 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210329/5945e0c2/attachment.bin>
More information about the libcxx-commits
mailing list