summary refs log tree commit diff stats
path: root/results/scraper/launchpad-without-comments/1660035
diff options
context:
space:
mode:
Diffstat (limited to 'results/scraper/launchpad-without-comments/1660035')
-rw-r--r--results/scraper/launchpad-without-comments/166003511
1 files changed, 11 insertions, 0 deletions
diff --git a/results/scraper/launchpad-without-comments/1660035 b/results/scraper/launchpad-without-comments/1660035
new file mode 100644
index 00000000..b4b91d30
--- /dev/null
+++ b/results/scraper/launchpad-without-comments/1660035
@@ -0,0 +1,11 @@
+hw/timer/altera_timer.c:207: bad size in memset ?
+
+hw/timer/altera_timer.c:207:5: warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
+
+Source code is
+
+     memset(t->regs, 0, ARRAY_SIZE(t->regs));
+
+Maybe better code
+
+     memset(t->regs, 0, R_MAX * sizeof( uint32_t));
\ No newline at end of file