Skip to content

Commit 8773118

Browse files
committed
loadtxt can deal with multi-line comments
1 parent 88ef893 commit 8773118

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

code/numpy/io/io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ static mp_obj_t io_loadtxt(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw
338338
buffer[read] = '\0';
339339
offset = buffer;
340340
while(*offset != '\0') {
341-
if(*offset == comment_char) {
341+
while(*offset == comment_char) {
342342
// clear the line till the end, or the buffer's end
343343
while((*offset != '\0')) {
344344
offset++;
@@ -425,7 +425,7 @@ static mp_obj_t io_loadtxt(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw
425425
offset = buffer;
426426

427427
while(*offset != '\0') {
428-
if(*offset == comment_char) {
428+
while(*offset == comment_char) {
429429
// clear the line till the end, or the buffer's end
430430
while((*offset != '\0')) {
431431
offset++;

code/ulab.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "user/user.h"
3434
#include "utils/utils.h"
3535

36-
#define ULAB_VERSION 6.7.4
36+
#define ULAB_VERSION 6.7.6
3737
#define xstr(s) str(s)
3838
#define str(s) #s
3939

docs/ulab-change-log.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
Thu, 29 May 2025
22

3+
version 6.7.6
4+
5+
loadtxt can deal with multi-line comments
6+
7+
Thu, 29 May 2025
8+
39
version 6.7.5
410

511
fix typo and shape in radnom module
12+
613
Sun, 16 Mar 2025
714

815
version 6.7.4

0 commit comments

Comments
 (0)