Skip to content

Commit ef718e3

Browse files
this time
1 parent a404a18 commit ef718e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/logic/myshell.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ fossil_bluecrab_myshell_error_t fossil_myshell_put(fossil_bluecrab_myshell_t *db
454454
sscanf(hash_comment, "#hash=%llx", &file_hash);
455455
if (strcmp(line, key) == 0 && file_hash == key_hash) {
456456
// Overwrite with new value and type
457-
fprintf(temp_file, "%s=%s #type=%s #hash=%016llx\n", key, value, myshell_fson_type_to_string(type_id), key_hash);
457+
fprintf(temp_file, "%s=%s #type=%s #hash=%016llx\n", key, value, myshell_fson_type_to_string(type_id), (unsigned long long)key_hash);
458458
updated = true;
459459
*eq = '='; // Restore
460460
continue;
@@ -1331,7 +1331,7 @@ fossil_bluecrab_myshell_error_t fossil_myshell_backup(fossil_bluecrab_myshell_t
13311331

13321332
// Write a hash of the backup path as a comment for integrity
13331333
uint64_t backup_hash = myshell_hash64(backup_path);
1334-
if (fprintf(backup_file, "#backup_hash=%016llx\n", backup_hash) < 0) {
1334+
if (fprintf(backup_file, "#backup_hash=%016llx\n", (unsigned long long)backup_hash) < 0) {
13351335
fclose(backup_file);
13361336
return FOSSIL_MYSHELL_ERROR_IO;
13371337
}

0 commit comments

Comments
 (0)