From 33bf645eaf0093336b7bcaedc4d650bc919c7f05 Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Wed, 1 Jun 2016 01:40:29 +0200 Subject: [PATCH] coding style --- smc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/smc.c b/smc.c index cb27744..e065f8a 100644 --- a/smc.c +++ b/smc.c @@ -22,13 +22,13 @@ #include GEN -smc_hextodec(char *s) /* int */ +smc_hextodec (char *s) /* int */ { long i, tmp; GEN ret = gen_0; /* int */ - GEN v = gtovecsmall(strtoGENstr(s)); /* vecsmall */ + GEN v = gtovecsmall (strtoGENstr (s)); /* vecsmall */ - for (i = 1; i < lg(v); ++i) + for (i = 1; i < lg (v); ++i) { if ((v[i] >= '0') && (v[i] <= '9')) tmp = v[i] - '0'; @@ -37,8 +37,8 @@ smc_hextodec(char *s) /* int */ else if ((v[i] >= 'A') && (v[i] <= 'F')) tmp = v[i] + 10 - 'A'; else - pari_err(e_MISC, "invalid input format"); - ret = addis(shifti(ret, 4), tmp); + pari_err (e_MISC, "invalid input format"); + ret = addis (shifti (ret, 4), tmp); } return ret; }