Re: [dev] [bug] sbase / expr: loss of leading zeros in string operations

From: <fomha4_AT_0w.se>
Date: Sun, 7 Jan 2024 18:08:12 +0100

On Sun, Jan 07, 2024 at 03:34:44PM +0100, Hiltjo Posthuma wrote:
> On Sun, Jan 07, 2024 at 01:20:21PM +0100, fomha4_AT_0w.se wrote:
> > The leading zeros are lost if the argument looks like a number.

> Thanks, the issue seems to be in lex() I think:
> http://git.suckless.org/sbase/file/expr.c.html#l175

The code in lex() and match() seems to reflect assumptions used in parse().
It is probably in parse() adjustments are needed in the first hand, in
handling of the data types.

/ fomha4
Received on Sun Jan 07 2024 - 18:08:12 CET

This archive was generated by hypermail 2.3.0 : Sun Jan 07 2024 - 18:12:08 CET