diff --git a/src/peep.c b/src/peep.c
index c287b6498373f828b8e801361f7de3ba39d750b4..ad9581fb955428fbac277660e7fd462e89386314 100644
--- a/src/peep.c
+++ b/src/peep.c
@@ -347,7 +347,7 @@ int insopt(int f, INT32 b, int cl, struct pike_string *cf)
 #endif
 
   p->opcode=f;
-  p->line=current_line;
+  p->line=cl;
   copy_shared_string(p->file, current_file);
   p->arg=b;