Skip to content
Snippets Groups Projects
Commit e3e05002 authored by Damien George's avatar Damien George
Browse files

py: Make pfenv.c conform to code conventions.

parent e8e8f212
No related branches found
No related tags found
No related merge requests found
#include <stdint.h>
#include <string.h>
///#include "std.h"
#include "misc.h"
#include "mpconfig.h"
#include "qstr.h"
......@@ -55,8 +54,9 @@ int pfenv_print_strn(const pfenv_t *pfenv, const char *str, unsigned int len, in
if (left_pad) {
while (left_pad > 0) {
int p = left_pad;
if (p > pad_size)
if (p > pad_size) {
p = pad_size;
}
pfenv->print_strn(pfenv->data, pad_chars, p);
left_pad -= p;
}
......@@ -65,8 +65,9 @@ int pfenv_print_strn(const pfenv_t *pfenv, const char *str, unsigned int len, in
if (right_pad) {
while (right_pad > 0) {
int p = right_pad;
if (p > pad_size)
if (p > pad_size) {
p = pad_size;
}
pfenv->print_strn(pfenv->data, pad_chars, p);
right_pad -= p;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment