mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-11-26 10:21:22 +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));
|
||||
break;
|
||||
case MDB_INT:
|
||||
text = g_strdup_printf("%ld",
|
||||
(long)mdb_get_int16(buf, start));
|
||||
text = g_strdup_printf("%hd",
|
||||
(short)mdb_get_int16(buf, start));
|
||||
break;
|
||||
case MDB_LONGINT:
|
||||
text = g_strdup_printf("%ld",
|
||||
|
||||
Reference in New Issue
Block a user