Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Parameters are being typed as float by default?
- X-seq: zsh-workers 15301
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Parameters are being typed as float by default?
- Date: Sat, 7 Jul 2001 16:43:14 +0000
- In-reply-to: <1010707160616.ZM14531@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1010707160616.ZM14531@xxxxxxxxxxxxxxxxxxxxxxx>
On Jul 7, 4:06pm, Bart Schaefer wrote:
} Subject: Parameters are being typed as float by default?
}
} This has something to do with 15291, 15292.
}
} let lines=$LINES-2
}
} Why did $lines become float-typed?
It became float-typed because at math.c:644, MN_UNSET != MN_INTEGER, so
the types of both the integer and the unset parameter got coerced to float.
However, I don't know the right way to fix this. I'm pretty sure that
MN_UNSET should not be changed to MN_INTEGER at that point in the code.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author