summaryrefslogtreecommitdiff
path: root/src/wasm-delegations-fields.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-delegations-fields.h')
-rw-r--r--src/wasm-delegations-fields.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-delegations-fields.h b/src/wasm-delegations-fields.h
index df2309474..ddcd2792b 100644
--- a/src/wasm-delegations-fields.h
+++ b/src/wasm-delegations-fields.h
@@ -93,7 +93,7 @@
#ifndef DELEGATE_FIELD_CHILD_VECTOR
#ifdef DELEGATE_GET_FIELD
#define DELEGATE_FIELD_CHILD_VECTOR(id, name) \
- for (Index i = 0; i < (DELEGATE_GET_FIELD(id, name)).size(); i++) { \
+ for (int i = int((DELEGATE_GET_FIELD(id, name)).size()) - 1; i >= 0; i--) { \
DELEGATE_FIELD_CHILD(id, name[i]); \
}
#else