diff options
Diffstat (limited to 'users/tazjin/presentations/tvix-eval-2023/cppnix-example-smuggling.cpp')
-rw-r--r-- | users/tazjin/presentations/tvix-eval-2023/cppnix-example-smuggling.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/users/tazjin/presentations/tvix-eval-2023/cppnix-example-smuggling.cpp b/users/tazjin/presentations/tvix-eval-2023/cppnix-example-smuggling.cpp index ee0ab4ab4117..37b9219b2eac 100644 --- a/users/tazjin/presentations/tvix-eval-2023/cppnix-example-smuggling.cpp +++ b/users/tazjin/presentations/tvix-eval-2023/cppnix-example-smuggling.cpp @@ -1,12 +1,12 @@ struct Env { - Value * values[0]; - // ... some more fields + // ... some struct fields ... + Value* values[0]; }; // .... if (env->type == Env::HasWithExpr) { - Value * v = allocValue(); - evalAttrs(*env->up, (Expr *) env->values[0], *v, noPos, "<borked>"); // ... + evalAttrs(*env->up, (Expr *) env->values[0], *v, noPos, "<borked>"); + // ^^^^^^^^^^^^^^^^^^^^^^^ } |