Summary

types.db: "allocate" can return false, not just pointers

Metadata

Description

 
 But when I do {{{(let ((x (allocate y))) (unless x (error "allocation problem")))}}} I get a compiler warning:
 
 {{{
 Warning: in toplevel procedure `freetds#make-CS_BINARY*':
   expected value of type boolean in conditional but were given a value of
 type `pointer' which is always true:

I think types.db needs a small tweak to accommodate null pointers.

Probably something like this:

Changes and comments

[2011-05-15 14:25:45 UTC] felix changed status from new to closed

[2011-05-15 14:25:45 UTC] felix set resolution to fixed

[2011-05-15 14:25:45 UTC] felix wrote:

Correct. Thanks.

[2011-06-01 09:00:41 UTC] felix changed milestone from 4.7.0 to 4.8.0

[2011-06-01 09:00:41 UTC] felix wrote:

Milestone 4.7.0 deleted

[2012-09-24 21:47:48 UTC] felix changed milestone from 4.8.0 to 4.9.0

[2012-09-24 21:47:48 UTC] felix wrote:

Milestone 4.8.0 deleted