using 0 for final array value initialization instead of NULL

This commit is contained in:
Alex Shinn 2012-07-16 23:30:54 +09:00
parent 0553dd41b9
commit ea8a3df083

View file

@ -970,7 +970,7 @@
";\n" ";\n"
" }\n") " }\n")
(if (not (number? (type-array a))) (if (not (number? (type-array a)))
(cat " tmp" (type-index a) "[i] = NULL;\n"))) (cat " tmp" (type-index a) "[i] = 0;\n")))
((and (type-result? a) (not (basic-type? a)) ((and (type-result? a) (not (basic-type? a))
(not (type-free? a)) ;;(not (type-pointer? a)) (not (type-free? a)) ;;(not (type-pointer? a))
(not (type-reference? a)) (not (type-reference? a))