tomhrr / dale

Lisp-flavoured C
BSD 3-Clause "New" or "Revised" License
1.03k stars 48 forks source link

Error when parsing arrays of float #96

Closed porky11 closed 7 years ago

porky11 commented 8 years ago
(def main (fn extern-c void (void)
  (def x (var auto \ (array-of 2 float (array 0.0 0.0))))
  (return)))
;;error: expected return expression with type float (got type int instead)

it seems to parse the numbers in the array (0.0) as ints

tomhrr commented 8 years ago

On Tue, Sep 13, 2016 at 02:55:06PM -0700, Fabio Krapohl wrote:

(def main (fn extern-c void (void) (def x (var auto \ (array-of 2 float (array 0.0 0.0)))) (return))) ;;error: expected return expression with type float (got type int instead)

it seems to parse the numbers in the array (0.0) as ints

Thanks, this has been fixed.