Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit cf01cee

Browse files
committed
use PyObject_HEAD
1 parent 34d863e commit cf01cee

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

arraymap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ kat_is_datetime_unit(KeysArrayType kat, NPY_DATETIMEUNIT unit) {
275275
}
276276

277277
typedef struct FAMObject{
278-
PyObject_VAR_HEAD
278+
PyObject_HEAD
279279
Py_ssize_t table_size;
280280
TableElement *table; // an array of TableElement structs
281281
PyObject *keys;
@@ -465,7 +465,7 @@ int_cache_remove(Py_ssize_t key_count)
465465
// FrozenAutoMapIterator functions
466466

467467
typedef struct FAMIObject {
468-
PyObject_VAR_HEAD
468+
PyObject_HEAD
469469
FAMObject *fam;
470470
PyArrayObject* keys_array;
471471
ViewKind kind;
@@ -606,7 +606,7 @@ fami_new(FAMObject *fam, ViewKind kind, int reversed)
606606

607607
// A FAMVObject contains a reference to the FAM from which it was derived
608608
typedef struct FAMVObject{
609-
PyObject_VAR_HEAD
609+
PyObject_HEAD
610610
FAMObject *fam;
611611
ViewKind kind;
612612
} FAMVObject;

test/test_unit.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,6 @@ def test_fam_array_get_all_m3():
922922
assert post2.tolist() == [2, 1]
923923

924924

925-
926925
# -------------------------------------------------------------------------------
927926

928927

0 commit comments

Comments
 (0)