1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2025-03-04 06:10:23 +01:00

Fixed previous commit

This commit is contained in:
Anthony Scemama 2024-12-30 03:19:34 +01:00
parent 8bb2c1e179
commit 8cbc71ecb2
2 changed files with 3 additions and 3 deletions

View File

@ -1718,7 +1718,7 @@ trexio_exit_code trexio_text_read_determinant_list(trexio_t* const file,
int rc;
/* Declare fixed buffer which will be used to read the determinant string <a1 a2 ... a/\ b1 b2 ... b\/> */
char buffer[line_length+2];
uint32_t buf_size = sizeof(buffer);
size_t buf_size = sizeof(buffer);
/* Parameters to post-process the buffer and to get bit fields integers */
uint64_t accum = 0UL;
uint32_t shift_int64 = 21U;
@ -1729,7 +1729,7 @@ trexio_exit_code trexio_text_read_determinant_list(trexio_t* const file,
accum = 0UL;
memset(buffer, 0, buf_size);
if (fgets(buffer, line_length+1, f) == NULL){
if (fgets(buffer, ( (int) line_length)+1, f) == NULL){
fclose(f);
,*eof_read_size = count;

View File

@ -270,7 +270,7 @@ static int test_read_determinant (const char* file_name, const back_end_t backen
// rc = trexio_read_determinant_list(file, 0L, &chunk_read, &det_list_read[0L]);
// read n_chunks times using read_sparse
uint64_t chunk_size = (uint64_t) (SIZE-1)/N_CHUNKS+1;
int64_t chunk_size = (int64_t) (SIZE-1)/N_CHUNKS+1;
uint64_t offset_f = 0UL;
uint64_t offset_d = 0UL;
for(int i=0; i<N_CHUNKS; ++i){