mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-10-18 04:47:04 +02:00
SQLite stores uint values > 2,147,483,647 as negative int64. When Dapper deserializes the address column from sa_players_ips into a uint tuple field, values like -1250625110 (which represents a valid IP as uint: 3044342186) cause a System.OverflowException. This fix changes the query tuple type from uint to long and adds an explicit cast (uint)(value & 0xFFFFFFFF) to safely convert both positive and negative stored values back to the correct uint representation. Affects: SQLite users with IP addresses in the upper half of the uint range (IPs > 128.x.x.x) |
||
|---|---|---|
| .. | ||
| 3rd_party | ||
| Api | ||
| Commands | ||
| Database | ||
| Extensions | ||
| lang | ||
| Managers | ||
| Menus | ||
| Models | ||
| admin_help.txt | ||
| Config.cs | ||
| CS2-SimpleAdmin.cs | ||
| CS2-SimpleAdmin.csproj | ||
| Events.cs | ||
| Helper.cs | ||
| Variables.cs | ||
| VERSION | ||