Skip to content

Commit

Permalink
update .h and .cuh interfaces to reflect Str changes
Browse files Browse the repository at this point in the history
the Str struct was stale in the header files
  • Loading branch information
enricozb committed Aug 5, 2024
1 parent 6506a98 commit 7846b50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/hvm.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ typedef struct Tup {
extern Tup gnet_readback_tup(GNet* gnet, Port port, u32 size);

typedef struct Str {
u32 text_len;
char text_buf[256];
u32 len;
char *buf;
} Str;

// Reads a constructor-encoded string (of length at most 255 characters),
Expand Down
4 changes: 2 additions & 2 deletions src/hvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ typedef struct Tup {
extern Tup readback_tup(Net* net, Book* book, Port port, u32 size);

typedef struct Str {
u32 text_len;
char text_buf[256];
u32 len;
char *buf;
} Str;

// Reads a constructor-encoded string (of length at most 255 characters),
Expand Down

0 comments on commit 7846b50

Please sign in to comment.