Skip to content

Commit 3b128a2

Browse files
committed
Add TODO note, small typing fixes
1 parent f8f88ec commit 3b128a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

DevUtils/test_qword.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def gt_uint32(a: int, b: int) -> bool:
7676
ltb = ltb | (ltb >> 8)
7777
ltb = ltb | (ltb >> 16)
7878

79-
return gtb & ~ltb
79+
return bool(gtb & ~ltb)
8080

8181

8282
# FCryptoQWORD::IsLt_AsUInt32
@@ -90,7 +90,7 @@ def lt_uint32(a: int, b: int) -> bool:
9090
gtb = gtb | (gtb >> 8)
9191
gtb = gtb | (gtb >> 16)
9292

93-
return ltb & ~gtb
93+
return bool(ltb & ~gtb)
9494

9595

9696
# FCryptoQWORD::FCQWORD16_AddInt without carry return.
@@ -134,6 +134,8 @@ def qword16_sub_int(qw: QWord16, x: int) -> QWord16:
134134
qw.a -= 0x1
135135
qw.b += 0xf
136136

137+
# TODO: a missing step here?
138+
137139
return qw
138140

139141

0 commit comments

Comments
 (0)