summary refs log tree commit diff stats
path: root/results/scraper/launchpad-without-comments/1630527
diff options
context:
space:
mode:
Diffstat (limited to 'results/scraper/launchpad-without-comments/1630527')
-rw-r--r--results/scraper/launchpad-without-comments/163052711
1 files changed, 11 insertions, 0 deletions
diff --git a/results/scraper/launchpad-without-comments/1630527 b/results/scraper/launchpad-without-comments/1630527
new file mode 100644
index 000000000..88b79cb0f
--- /dev/null
+++ b/results/scraper/launchpad-without-comments/1630527
@@ -0,0 +1,11 @@
+qemu/hw/i386/amd_iommu.c:188: possible bad shift ?
+
+qemu/hw/i386/amd_iommu.c:188]: (error) Shifting 32-bit value by 64 bits is undefined behaviour
+
+Source code is
+
+    uint64_t mask = ((1 << length) - 1) << bitpos;
+
+Maybe better code
+
+    uint64_t mask = ((1ULL << length) - 1) << bitpos;
\ No newline at end of file