mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-11-26 10:29:27 +08:00
fix negative numbers on MDB_INT types
This commit is contained in:
@@ -828,8 +828,8 @@ char *mdb_col_to_string(MdbHandle *mdb, void *buf, int start, int datatype, int
|
|||||||
text = g_strdup_printf("%d", mdb_get_byte(buf, start));
|
text = g_strdup_printf("%d", mdb_get_byte(buf, start));
|
||||||
break;
|
break;
|
||||||
case MDB_INT:
|
case MDB_INT:
|
||||||
text = g_strdup_printf("%ld",
|
text = g_strdup_printf("%hd",
|
||||||
(long)mdb_get_int16(buf, start));
|
(short)mdb_get_int16(buf, start));
|
||||||
break;
|
break;
|
||||||
case MDB_LONGINT:
|
case MDB_LONGINT:
|
||||||
text = g_strdup_printf("%ld",
|
text = g_strdup_printf("%ld",
|
||||||
|
|||||||
Reference in New Issue
Block a user