Commit 58652fef authored by Michael Droettboom's avatar Michael Droettboom

LINT

parent 779da3cd
...@@ -134,15 +134,15 @@ python2js_int(PyObject* x) ...@@ -134,15 +134,15 @@ python2js_int(PyObject* x)
int data = (int)PyUnicode_DATA(x); int data = (int)PyUnicode_DATA(x);
int length = (int)PyUnicode_GET_LENGTH(x); int length = (int)PyUnicode_GET_LENGTH(x);
switch (kind) { switch (kind) {
case PyUnicode_1BYTE_KIND: case PyUnicode_1BYTE_KIND:
return hiwire_string_ucs1(data, length); return hiwire_string_ucs1(data, length);
case PyUnicode_2BYTE_KIND: case PyUnicode_2BYTE_KIND:
return hiwire_string_ucs2(data, length); return hiwire_string_ucs2(data, length);
case PyUnicode_4BYTE_KIND: case PyUnicode_4BYTE_KIND:
return hiwire_string_ucs4(data, length); return hiwire_string_ucs4(data, length);
default: default:
PyErr_SetString(PyExc_ValueError, "Unknown Unicode KIND"); PyErr_SetString(PyExc_ValueError, "Unknown Unicode KIND");
return -1; return -1;
} }
} else if (PyBytes_Check(x)) { } else if (PyBytes_Check(x)) {
char* x_buff; char* x_buff;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment