-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0x02 Attribute is possibly unsigned. Made all Signed Ints are now Unsigned. #44
base: master
Are you sure you want to change the base?
Conversation
Preliminary testing has shown for this to connect and operate like normal. More testing is needed to make it gold. * Log -1 is now 0, I don't know if that impacts.
@@ -2,7 +2,7 @@ | |||
{ | |||
public class FriendRequestModel | |||
{ | |||
public int Id { get; set; } | |||
public uint Id { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep these as int
since it interacts with the database. We may need to add casting in places between our database and the protocol though.
@@ -5,10 +5,10 @@ namespace PFire.Infrastructure.Entities | |||
{ | |||
public class Friend : Entity | |||
{ | |||
public int MeId { get; set; } | |||
public uint MeId { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually don't think EF supports unsigned ints. Let's try to keep all the interacts with the database to continue to use int
.
There's no realistic concern we'll max out the size anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh definitely, I just covered every base in my changes. I will make a new change in a bit.
@@ -0,0 +1,22 @@ | |||
using System; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you can please also delete the Int32Attribute
class in this PR too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will get on it.
@@ -16,7 +16,8 @@ public class XFireAttributeFactory | |||
private XFireAttributeFactory() | |||
{ | |||
Add(new StringAttribute()); | |||
Add(new Int32Attribute()); | |||
//Add(new Int32Attribute()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//Add(new Int32Attribute()); |
Let's just delete this
As mentioned in Discord, I'll help test this 👍
No impact -- all good. |
I suspect that 0x02 int32 is unsigned.
Reasons to believe:
Reasons to reject:
pFire:
Preliminary testing has shown for this to connect and operate like normal. More testing is needed to make it gold.
Note: