compiler/libec: Improved detection of incompatible pointer types
authorJerome St-Louis <jerome@ecere.com>
Thu, 12 Jun 2014 03:23:31 +0000 (23:23 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 12 Jun 2014 03:23:31 +0000 (23:23 -0400)
commitcea01dbd27b25641f656307c93ca6dc6f4a2164a
treea1fcce1de96a6ee9781ed65d3cc16395c27976bf
parentce54b58dd9ebcede7ba012ce52b82817b061d40c
compiler/libec: Improved detection of incompatible pointer types
- Added an additional check based on type size, as the compiler
  would previously not warn for assigning a uint16 * to a uint *
- Fixed type size computation for C structs (as included in C headers)
- Fixed FindType()'s null check to be for the context passed in rather than 'curContext'
  (assuming that was the original intent)
compiler/bootstrap/libec/bootstrap/ast.c
compiler/bootstrap/libec/bootstrap/pass15.c
compiler/libec/src/ast.ec
compiler/libec/src/pass15.ec