aboutsummaryrefslogtreecommitdiffstats
path: root/sys/decl.go
diff options
context:
space:
mode:
Diffstat (limited to 'sys/decl.go')
-rw-r--r--sys/decl.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/decl.go b/sys/decl.go
index 7023bcdb2..e24b21766 100644
--- a/sys/decl.go
+++ b/sys/decl.go
@@ -660,7 +660,8 @@ func init() {
initResources()
initAlign()
- for _, c := range Calls {
+ for i, c := range Calls {
+ c.ID = i
if CallMap[c.Name] != nil {
println(c.Name)
panic("duplicate syscall")