mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-09-30 05:16:28 -05:00
For fuck's sake mysql
Workaround LAST_INSERT_ID and CAST limitations by making all primary keys unsigned bigint. Workaround LAST_INSERT_ID signed/unsigned inconsistency between 5.5 and 5.6 by using Convert.ToUInt64 instead of casts.
This commit is contained in:
@@ -57,7 +57,7 @@ namespace bvRestorer5
|
||||
}
|
||||
|
||||
int pid = BitConverter.ToInt32(data, 0x08);
|
||||
long serial = BitConverter.ToInt64(data, 0x0c);
|
||||
ulong serial = BitConverter.ToUInt64(data, 0x0c);
|
||||
byte[] mainData = new byte[0x18a4];
|
||||
Array.Copy(data, 0x14, mainData, 0, 0x18a4);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user