Cleanup: replace unsigned with uint, use function style casts for C++
This commit is contained in:
@@ -98,7 +98,7 @@ static PyObject *ContextFunctions_load_map(PyObject * /*self*/, PyObject *args,
|
||||
{
|
||||
static const char *kwlist[] = {"file_name", "map_name", "num_levels", "sigma", nullptr};
|
||||
char *fileName, *mapName;
|
||||
unsigned nbLevels = 4;
|
||||
uint nbLevels = 4;
|
||||
float sigma = 1.0;
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(
|
||||
@@ -135,7 +135,7 @@ static PyObject *ContextFunctions_read_map_pixel(PyObject * /*self*/,
|
||||
static const char *kwlist[] = {"map_name", "level", "x", "y", nullptr};
|
||||
char *mapName;
|
||||
int level;
|
||||
unsigned x, y;
|
||||
uint x, y;
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(
|
||||
args, kwds, "siII", (char **)kwlist, &mapName, &level, &x, &y)) {
|
||||
@@ -167,7 +167,7 @@ static PyObject *ContextFunctions_read_complete_view_map_pixel(PyObject * /*self
|
||||
{
|
||||
static const char *kwlist[] = {"level", "x", "y", nullptr};
|
||||
int level;
|
||||
unsigned x, y;
|
||||
uint x, y;
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds, "iII", (char **)kwlist, &level, &x, &y)) {
|
||||
return nullptr;
|
||||
@@ -201,7 +201,7 @@ static PyObject *ContextFunctions_read_directional_view_map_pixel(PyObject * /*s
|
||||
{
|
||||
static const char *kwlist[] = {"orientation", "level", "x", "y", nullptr};
|
||||
int orientation, level;
|
||||
unsigned x, y;
|
||||
uint x, y;
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(
|
||||
args, kwds, "iiII", (char **)kwlist, &orientation, &level, &x, &y)) {
|
||||
|
||||
Reference in New Issue
Block a user