struct Section's src can be const

This commit is contained in:
Rangi42 authored and Sylvie committed 2024-02-29 13:44:08 -05:00
1 parent 0cc49782ab
commit d6681d3580
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -382,7 +382,7 @@ void fstk_RunMacro(char const *macroName, struct MacroArgs *args)
}
}
if (macro->src->type == NODE_REPT) {
std::vector<uint32_t> &srcIters = macro->src->iters();
std::vector<uint32_t> const &srcIters = macro->src->iters();
for (uint32_t i = srcIters.size(); i--; ) {
char buf[sizeof("::REPT~4294967295")]; // UINT32_MAX