
I agree -- I also had the thought of changing to an if statement after I sent my mail. Much better than the switch since it can't break.
I've thrown in the int and float cases to make sure we cover every machine that may be out there.
I suspect that if float is 8 bytes then int will be too. Just char, short, float, and double should suffice. If the 4-byte version is missing it will just fall back on the default (slower but otherwise OK), and if the C compiler doesn't support shorter data items then probably the user won't be using them anyway... Rick White

I agree -- I also had the thought of changing to an if statement after I sent my mail. Much better than the switch since it can't break.
I took the liberty to change this in the CVS tree. (I haven't been very active lately and wanted to help in some way.) I haven't released a new version with the change, though. -Travis

I agree -- I also had the thought of changing to an if statement after I sent my mail. Much better than the switch since it can't break.
I took the liberty to change this in the CVS tree. (I haven't been very active lately and wanted to help in some way.) I haven't released a new version with the change, though. -Travis
participants (2)
-
rlw@stsci.edu
-
Travis Oliphant