| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 27ff74d commit 2d28f59
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,8 +41,8 @@ PyAPI_FUNC(char *) PyBytes_AsString(PyObject *); | |||
| 41 | 41 | PyAPI_FUNC(int) PyBytes_Resize(PyObject *, Py_ssize_t); | |
| 42 | 42 | ||
| 43 | 43 | /* Macros, trading safety for speed */ | |
| 44 | - #define PyBytes_AS_STRING(self) (((PyBytesObject *)(self))->ob_bytes) | ||
| 45 | - #define PyBytes_GET_SIZE(self) (((PyBytesObject *)(self))->ob_size) | ||
| 44 | + #define PyBytes_AS_STRING(self) (assert(PyBytes_Check(self)),((PyBytesObject *)(self))->ob_bytes) | ||
| 45 | + #define PyBytes_GET_SIZE(self) (assert(PyBytes_Check(self)),((PyBytesObject *)(self))->ob_size) | ||
| 46 | 46 | ||
| 47 | 47 | #ifdef __cplusplus | |
| 48 | 48 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments