@@ -1787,7 +1787,7 @@ type PSAPI_WORKING_SET_EX_BLOCK uintptr
17871787// Valid returns the validity of this page.
17881788// If this bit is 1, the subsequent members are valid; otherwise they should be ignored.
17891789func (b PSAPI_WORKING_SET_EX_BLOCK ) Valid () bool {
1790- return (b & 1 ) == 1
1790+ return (b & 1 ) != 0
17911791}
17921792
17931793// ShareCount is the number of processes that share this page. The maximum value of this member is 7.
@@ -1804,7 +1804,7 @@ func (b PSAPI_WORKING_SET_EX_BLOCK) Win32Protection() uint64 {
18041804// Shared returns the shared status of this page.
18051805// If this bit is 1, the page can be shared.
18061806func (b PSAPI_WORKING_SET_EX_BLOCK ) Shared () bool {
1807- return (b & (1 << 15 )) == 1
1807+ return (b & (1 << 15 )) != 0
18081808}
18091809
18101810// Node is the NUMA node. The maximum value of this member is 63.
@@ -1815,19 +1815,19 @@ func (b PSAPI_WORKING_SET_EX_BLOCK) Node() uint64 {
18151815// Locked returns the locked status of this page.
18161816// If this bit is 1, the virtual page is locked in physical memory.
18171817func (b PSAPI_WORKING_SET_EX_BLOCK ) Locked () bool {
1818- return (b & (1 << 22 )) == 1
1818+ return (b & (1 << 22 )) != 0
18191819}
18201820
18211821// LargePage returns the large page status of this page.
18221822// If this bit is 1, the page is a large page.
18231823func (b PSAPI_WORKING_SET_EX_BLOCK ) LargePage () bool {
1824- return (b & (1 << 23 )) == 1
1824+ return (b & (1 << 23 )) != 0
18251825}
18261826
18271827// Bad returns the bad status of this page.
18281828// If this bit is 1, the page is has been reported as bad.
18291829func (b PSAPI_WORKING_SET_EX_BLOCK ) Bad () bool {
1830- return (b & (1 << 31 )) == 1
1830+ return (b & (1 << 31 )) != 0
18311831}
18321832
18331833// intField extracts an integer field in the PSAPI_WORKING_SET_EX_BLOCK union.
0 commit comments