diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-12-29 09:41:38 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-01 20:09:36 +0000 |
| commit | 5b167bd18591101651666eb27f30e1eeaa61698b (patch) | |
| tree | 7e6cecc1b0bcded34991b7de3efc9d88034a1fce | |
| parent | box-drawing: make ‘term’ parameter const (diff) | |
box-drawing: remove __attribute__((__const__)) from thickness()
thickness() is a static function and thus ‘const’ is not necessary.
| -rw-r--r-- | box-drawing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/box-drawing.c b/box-drawing.c index fb6f8d1b..bca651da 100644 --- a/box-drawing.c +++ b/box-drawing.c @@ -14,7 +14,7 @@ #define LIGHT 1.0 #define HEAVY 2.0 -static int CONST +static int thickness(float pts, int dpi) { return pts * (float)dpi / 72.0; |
