File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ Improvements
2626Fixes
2727~~~~~
2828
29+ * Fix ``const `` discard warnings in ``fletcher32 ``.
30+ By :user: `John Kirkham <jakirkham> `, :issue: `728 `
31+
2932* Update ``license* `` metadata and include third-party licenses.
3033 By :user: `John Kirkham <jakirkham> `, :issue: `729 `
3134
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ class Fletcher32(Codec):
7676 """ Return buffer plus a footer with the fletcher checksum (4-bytes)"""
7777 buf = ensure_contiguous_ndarray(buf).ravel().view(' uint8' )
7878 cdef const uint8_t[::1 ] b_mv = buf
79- cdef uint8_t* b_ptr = & b_mv[0 ]
79+ cdef const uint8_t* b_ptr = & b_mv[0 ]
8080 cdef Py_ssize_t b_len = len (b_mv)
8181
8282 cdef Py_ssize_t out_len = b_len + FOOTER_LENGTH
@@ -92,7 +92,7 @@ class Fletcher32(Codec):
9292 """ Check fletcher checksum, and return buffer without it"""
9393 b = ensure_contiguous_ndarray(buf).view(' uint8' )
9494 cdef const uint8_t[::1 ] b_mv = b
95- cdef uint8_t* b_ptr = & b_mv[0 ]
95+ cdef const uint8_t* b_ptr = & b_mv[0 ]
9696 cdef Py_ssize_t b_len = len (b_mv)
9797
9898 val = _fletcher32(b_mv[:- FOOTER_LENGTH])
You can’t perform that action at this time.
0 commit comments