From 8ef4a48ddca8050a9779b69a3333e203b6ea4e53 Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 22 Aug 2025 15:26:50 -0400 Subject: [PATCH] Remove uneeded c type references in signatures --- binding/python_c_ffi.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/binding/python_c_ffi.py b/binding/python_c_ffi.py index 0f32325..5725959 100644 --- a/binding/python_c_ffi.py +++ b/binding/python_c_ffi.py @@ -127,20 +127,20 @@ class ChessFFI: def gen_pseudo_moves(self, board, captures_only=False, cap=256): buf = (Move * cap)() - n = self._c_gen_pseudo_moves(C.byref(board), buf, captures_only) + n = self._c_gen_pseudo_moves(board, buf, captures_only) return buf, n def get_legal_moves(self, board, out): - return int(self._c_get_legal_moves(board, out)) + return self._c_get_legal_moves(board, out) def square_attacked(self, board, sq, by): - return bool(self._c_square_attacked(C.byref(board), int(sq), int(by))) + return self._c_square_attacked(board, sq, by) def in_check(self, board, side): - return bool(self._c_in_check(C.byref(board), int(side))) + return self._c_in_check(board, side) def attackers_to(self, board, sq, by):