mirror of
https://github.com/TREX-CoE/trexio.git
synced 2025-01-08 20:33:36 +01:00
Format for unsigned long + overflows in struct
This commit is contained in:
parent
f8dae45c10
commit
700803528f
@ -217,7 +217,7 @@ trexio_exit_code trexio_hdf5_write_$group_num$ (const trexio_t* file, const uint
|
||||
if (infile_num != num) {
|
||||
|
||||
if (infile_num != 0) {
|
||||
printf("%ld -> %ld %s \n", num, infile_num,
|
||||
printf("%lu -> %lu %s \n", num, infile_num,
|
||||
"This variable already exists. Overwriting it is not supported");
|
||||
H5Tclose(dtype);
|
||||
return TREXIO_FAILURE;
|
||||
|
@ -78,12 +78,12 @@
|
||||
#+begin_src c :tangle struct_text_group_dset.h
|
||||
|
||||
typedef struct $group$_s {
|
||||
uint64_t $group_num$;
|
||||
FILE* file;
|
||||
$group_dset_dtype$* $group_dset$;
|
||||
uint64_t $group_num$;
|
||||
uint64_t dims_$group_dset$[16];
|
||||
uint32_t rank_$group_dset$;
|
||||
int to_flush;
|
||||
uint32_t to_flush;
|
||||
uint64_t dims_$group_dset$[16];
|
||||
} $group$_t;
|
||||
|
||||
#+end_src
|
||||
@ -93,18 +93,19 @@ typedef struct $group$_s {
|
||||
#+begin_src c :tangle struct_text_group.h
|
||||
|
||||
typedef struct rdm_s {
|
||||
FILE* file;
|
||||
uint64_t dim_one_e;
|
||||
uint32_t to_flush;
|
||||
uint32_t padding;
|
||||
double* one_e;
|
||||
FILE* file;
|
||||
char* two_e_file_name;
|
||||
int to_flush;
|
||||
} rdm_t;
|
||||
|
||||
typedef struct trexio_text_s {
|
||||
trexio_t parent ;
|
||||
int lock_file;
|
||||
$group$_t* $group$;
|
||||
rdm_t* rdm;
|
||||
int lock_file;
|
||||
} trexio_text_t;
|
||||
|
||||
#+end_src
|
||||
|
Loading…
Reference in New Issue
Block a user