summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-13 15:34:19 -0500
committerJune McEnroe <june@causal.agency>2021-01-13 15:34:19 -0500
commitd630ef7d01890a8d32638395ffa163b8cf02424b (patch)
treeca10b0373f6a11ecc1372aab4b5552ed900d5210 /bin
parentUpdate Terminal.app colours (diff)
downloadsrc-d630ef7d01890a8d32638395ffa163b8cf02424b.tar.gz
src-d630ef7d01890a8d32638395ffa163b8cf02424b.zip
Support long double in c.sh
Diffstat (limited to 'bin')
-rw-r--r--bin/c.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/c.sh b/bin/c.sh
index 4439aaee..74e3f95a 100644
--- a/bin/c.sh
+++ b/bin/c.sh
@@ -69,6 +69,7 @@ if [ -n "${type}" ]; then
 			unsigned long long: "(unsigned long long) ",
 			float: "(float) ",
 			double: "(double) ",
+			long double: "(long double) ",
 			default: "(void *) "
 		)
 	);
@@ -97,6 +98,7 @@ if [ -n "${expr}" ]; then
 			unsigned long long: "%llu\n",
 			float: "%g\n",
 			double: "%g\n",
+			long double: "%Lg\n",
 			default: "%p\n"
 		),
 		${expr}