Skip to content
Snippets Groups Projects
Commit c52dda95 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

* Bug: check that term is an application.

parent 5fe9222b
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,8 @@ Major changes include the following:
* Various new operators (e.g., string concatenation).
* Expression evaluation is much faster.
* An Emacs mode for editing Nix expressions (with syntax highlighting
and indentation) has been added.
......
......@@ -66,7 +66,7 @@ while (<STDIN>) {
print HEADER "#ifdef __cplusplus\n";
print HEADER "static inline bool match$funname(ATerm e$formals2) {\n";
print HEADER " if (ATgetAFun(e) != sym$funname) return false;\n";
print HEADER " if (ATgetType(e) != AT_APPL || ATgetAFun(e) != sym$funname) return false;\n";
print HEADER "$unpack";
print HEADER " return true;\n";
print HEADER "}\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment