From 294e5499e3fde21327e8d7b6f4ea7e6ba3425d0e Mon Sep 17 00:00:00 2001 From: Paul Lietar Date: Fri, 5 May 2017 11:21:11 +0100 Subject: [PATCH] Fix formatting and compilation error --- packages/buffered/_test.pony | 2 +- packages/files/directory.pony | 2 +- packages/files/file_path.pony | 2 +- packages/term/ansi_term.pony | 2 +- src/libponyc/type/reify.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/buffered/_test.pony b/packages/buffered/_test.pony index 034db1eb6c..887abcafe1 100644 --- a/packages/buffered/_test.pony +++ b/packages/buffered/_test.pony @@ -118,7 +118,7 @@ class iso _TestWriter is UnitTest [as U8: '\n'; 't'; 'h'; 'e'] [as U8: 'r'; 'e'; '\r'; '\n']] end) - let wb' : Array[(String val | Array[U8 val] val)] ref = wb.done() + let wb': Array[(String val | Array[U8 val] val)] ref = wb.done() for bs in wb'.values() do try b.append(bs as Array[U8] val) diff --git a/packages/files/directory.pony b/packages/files/directory.pony index abd4417b11..21799833e2 100644 --- a/packages/files/directory.pony +++ b/packages/files/directory.pony @@ -426,7 +426,7 @@ class Directory if fi.directory and not fi.symlink then let directory = open(target) - let dir_entries : Array[String] ref = directory.entries() + let dir_entries: Array[String] ref = directory.entries() for entry in dir_entries.values() do if not directory.remove(entry) then return false diff --git a/packages/files/file_path.pony b/packages/files/file_path.pony index 76b83a84c4..3fae5ab7bc 100644 --- a/packages/files/file_path.pony +++ b/packages/files/file_path.pony @@ -196,7 +196,7 @@ class val FilePath if info.directory and not info.symlink then let directory = Directory(this) - let entries : Array[String] ref = directory.entries() + let entries: Array[String] ref = directory.entries() for entry in entries.values() do if not join(entry).remove() then return false diff --git a/packages/term/ansi_term.pony b/packages/term/ansi_term.pony index 0bc4e8f9ea..8773d10dcb 100644 --- a/packages/term/ansi_term.pony +++ b/packages/term/ansi_term.pony @@ -80,7 +80,7 @@ actor ANSITerm return end - let data' : Array[U8] ref = consume data + let data': Array[U8] ref = consume data for c in data'.values() do match _escape | _EscapeNone => diff --git a/src/libponyc/type/reify.c b/src/libponyc/type/reify.c index 0474ebbbf2..94d88e3688 100644 --- a/src/libponyc/type/reify.c +++ b/src/libponyc/type/reify.c @@ -8,7 +8,7 @@ static ast_t* find_typearg(pass_opt_t* opt, ast_t* ast, ast_t* typeparams, ast_t* typeargs) { - ast_t* ref_def; + ast_t* ref_def = NULL; switch(ast_id(ast)) { case TK_REFERENCE: