Skip to content

Commit e89ad64

Browse files
this time
1 parent ef718e3 commit e89ad64

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
@@ -475,7 +475,7 @@ fossil_bluecrab_myshell_error_t fossil_myshell_put(fossil_bluecrab_myshell_t *db
475475

476476
if (!updated) {
477477
// Add new entry with FSON type and hash
478-
fprintf(temp_file, "%s=%s #type=%s #hash=%016llx\n", key, value, myshell_fson_type_to_string(type_id), key_hash);
478+
fprintf(temp_file, "%s=%s #type=%s #hash=%016llx\n", key, value, myshell_fson_type_to_string(type_id), (unsigned long long)key_hash);
479479
}
480480

481481
fclose(temp_file);
@@ -602,7 +602,7 @@ fossil_bluecrab_myshell_error_t fossil_myshell_del(fossil_bluecrab_myshell_t *db
602602
char *type_comment = strstr(eq + 1, "#type=");
603603
if (hash_comment) {
604604
uint64_t file_hash = 0;
605-
sscanf(hash_comment, "#hash=%llx", (unsigned long long *)&file_hash);
605+
sscanf(hash_comment, "#hash=%llx", &file_hash);
606606
if (strcmp(line, key) == 0 && file_hash == key_hash) {
607607
// Optionally validate type against FSON type system
608608
if (type_comment) {

0 commit comments

Comments
 (0)