Skip to content

Commit

Permalink
update 1.20.3-pre2
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickid2018 committed Nov 23, 2023
1 parent 7005549 commit 8a82529
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion minecraft-data
4 changes: 2 additions & 2 deletions utils/data_recorder.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ guint64 record_uint64(data_recorder recorder, guint64 data) {
if (recorder->recording == NULL)
return data;
wmem_map_insert(recorder->store_map, g_strconcat(recorder->recording_path, "/", recorder->recording, NULL),
g_strdup_printf("%llu", data));
g_strdup_printf("%lu", data));
return data;
}

Expand All @@ -71,7 +71,7 @@ gint64 record_int64(data_recorder recorder, gint64 data) {
if (recorder->recording == NULL)
return data;
wmem_map_insert(recorder->store_map, g_strconcat(recorder->recording_path, "/", recorder->recording, NULL),
g_strdup_printf("%lld", data));
g_strdup_printf("%ld", data));
return data;
}

Expand Down
6 changes: 3 additions & 3 deletions utils/nbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void parse_to_string(tvbuff_t *tvb, const guint8 *data, int offset_global, guint
break;
case TAG_LONG:
*length = 8;
*text = g_strdup_printf("%lld", ((((gint64) data[0] & 0xff) << 56) | ((gint64) (data[1] & 0xff) << 48) |
*text = g_strdup_printf("%ld", ((((gint64) data[0] & 0xff) << 56) | ((gint64) (data[1] & 0xff) << 48) |
((gint64) (data[2] & 0xff) << 40) | ((gint64) (data[3] & 0xff) << 32) |
((gint64) (data[4] & 0xff) << 24) | ((gint64) (data[5] & 0xff) << 16) |
((gint64) (data[6] & 0xff) << 8) | ((gint64) (data[7] & 0xff))));
Expand All @@ -37,7 +37,7 @@ void parse_to_string(tvbuff_t *tvb, const guint8 *data, int offset_global, guint
break;
case TAG_DOUBLE:
*length = 8;
*text = g_strdup_printf("%llf", tvb_get_ntohieee_double(tvb, offset_global));
*text = g_strdup_printf("%lf", tvb_get_ntohieee_double(tvb, offset_global));
break;
case TAG_BYTE_ARRAY:
case TAG_INT_ARRAY:
Expand All @@ -58,7 +58,7 @@ void parse_to_string(tvbuff_t *tvb, const guint8 *data, int offset_global, guint
((data[4 + i * 4 + 2] & 0xff) << 8) |
(data[4 + i * 4 + 3] & 0xff)));
else
elements[i] = g_strdup_printf("%lld", ((((gint64) data[4 + i * 8] & 0xff) << 56) |
elements[i] = g_strdup_printf("%ld", ((((gint64) data[4 + i * 8] & 0xff) << 56) |
((gint64) (data[4 + i * 8 + 1] & 0xff) << 48) |
((gint64) (data[4 + i * 8 + 2] & 0xff) << 40) |
((gint64) (data[4 + i * 8 + 3] & 0xff) << 32) |
Expand Down

0 comments on commit 8a82529

Please sign in to comment.