Skip to content

Commit 361c830

Browse files
committed
numbers containing dot weren't properly string matched.
1 parent d47421e commit 361c830

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

Changelog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
28 March 2025
2+
Fixed: Numbers containing dot (new since UFP objects) were not properly matched
3+
during string match.
4+
15
28 February 2025
26
Bug fixed: a*b*c:(a*b*c ?)*?z&!z:1
37
Before the fix, z would contain c and this expression would fail.

src/equal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "equal.h"
22

3+
#include "copy.h"
34
#include "flags.h"
45
#include "nodedefs.h"
56
#include "rational.h"
@@ -290,7 +291,7 @@ int scompare(char* s, char* cutoff, psk p
290291
psk n = NULL;
291292
sav = *cutoff;
292293
*cutoff = '\0';
293-
n = build_up(n, s, NULL);
294+
n = scopy((const char*)s);
294295
*cutoff = sav;
295296

296297
if(RAT_RAT(n))

src/potu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
email: bartj@hum.ku.dk
2121
*/
2222

23-
#define DATUM "28 February 2025"
24-
#define VERSION "6.28.1"
25-
#define BUILD "313"
23+
#define DATUM "28 March 2025"
24+
#define VERSION "6.28.2"
25+
#define BUILD "314"
2626
/*
2727
COMPILATION
2828
-----------

valid.bra

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8113,6 +8113,10 @@ string line 2\"
81138113
& !z:1
81148114
| Out$"Bug fixed 20250227"
81158115
)
8116+
( @("a 54. z":? ~<>"54." ?)
8117+
| Out
8118+
$ "Error: number containing a dot is not properly string matched."
8119+
)
81168120
& out
81178121
$ ( str
81188122
$ ( "Done. "
@@ -8137,8 +8141,8 @@ r=
81378141
& lst$(r,"valid.bra",APP)
81388142
& put$(\n,"valid.bra",APP,BIN)
81398143
& ( 666:?aaa
8140-
& slow:?speed
81418144
& fast:?speed
8145+
& slow:?speed
81428146
& "Don't write error messages to screen"
81438147
& err$0
81448148
& "LL keeps the '0' alife if 'lost' is incremented"

0 commit comments

Comments
 (0)