Commit 516b7e43 authored by Larry Hastings's avatar Larry Hastings

Two small, quick bugfixes for Argument Clinic.

parent 3ae6caaa
...@@ -922,8 +922,8 @@ class BlockParser: ...@@ -922,8 +922,8 @@ class BlockParser:
if self.is_start_line(line): if self.is_start_line(line):
break break
if checksum:
output = output_output() output = output_output()
if checksum:
if self.verify: if self.verify:
computed = compute_checksum(output) computed = compute_checksum(output)
if checksum != computed: if checksum != computed:
...@@ -2054,7 +2054,7 @@ class DSLParser: ...@@ -2054,7 +2054,7 @@ class DSLParser:
except SyntaxError: except SyntaxError:
pass pass
if not module: if not module:
fail("Function " + clinic.name + " has an invalid parameter declaration:\n\t" + line) fail("Function " + self.function.name + " has an invalid parameter declaration:\n\t" + line)
function_args = module.body[0].args function_args = module.body[0].args
parameter = function_args.args[0] parameter = function_args.args[0]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment