Skip to content

Commit

Permalink
nit fix for camelcasing
Browse files Browse the repository at this point in the history
  • Loading branch information
nishant-sachdeva committed Jan 5, 2024
1 parent d45fe65 commit b8a1c94
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Manylinux2014_Compliant_Source/pkg/ir2vec/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ static PyTypeObject IR2VecHandlerType = {

PyObject *runEncodings(PyObject *args, OpType type) {
const char *funcName = "\0";
IR2VecHandlerObject *IR2VecHandlerobj = nullptr;
IR2VecHandlerObject *ir2vecHandlerobj = nullptr;

if (!PyArg_ParseTuple(args, "O|s", &IR2VecHandlerobj, &funcName)) {
if (!PyArg_ParseTuple(args, "O|s", &ir2vecHandlerobj, &funcName)) {
Py_RETURN_NONE;
}

Expand All @@ -279,16 +279,16 @@ PyObject *runEncodings(PyObject *args, OpType type) {
Py_RETURN_NONE;
}

if (!IR2VecHandlerobj) {
if (!ir2vecHandlerobj) {
PyErr_SetString(PyExc_TypeError, "Embedding Object not created");
Py_RETURN_NONE;
}

if (!(IR2VecHandlerobj->ir2vecObj)) {
if (!(ir2vecHandlerobj->ir2vecObj)) {
PyErr_SetString(PyExc_TypeError, "Embedding Object not created");
Py_RETURN_NONE;
} else {
IR2VecHandler *ir2vecObj = IR2VecHandlerobj->ir2vecObj;
IR2VecHandler *ir2vecObj = ir2vecHandlerobj->ir2vecObj;
return ir2vecObj->generateEncodings(type, string(funcName));
}
}
Expand Down

0 comments on commit b8a1c94

Please sign in to comment.