-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
- Loading branch information
There are no files selected for viewing
3 comments
on commit e52c425
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.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms692727(v=vs.85).aspx
SIZE_T == ULONG_PTR == unsigned long == 32 bits. Java long is 64 bits. Did you mean NativeLong?
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.
According to the "Community Additions" it should work for long also. Do you think it would be better to use SIZE_T or int ?
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.
IIUC SIZE_T
is 32-bits or 64-bits depending on the architecture, so NativeLong
would not be appropriate. According to @lwahonen 's link, only 32 bits is used, but you still need to start with a 64-bit quantity on win64.
Wouldn't
assertNotNull()
be more concise?