From 56ba1d9cd345f1de3a29223b97257b78e66671f2 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Thu, 24 Feb 2022 18:07:22 -0600 Subject: [PATCH] Formatting cleanup. --- src/core/corelib.c | 4 ++-- src/core/inttypes.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/corelib.c b/src/core/corelib.c index a028cbb6..70486ef1 100644 --- a/src/core/corelib.c +++ b/src/core/corelib.c @@ -341,8 +341,8 @@ JANET_CORE_FN(janet_core_describe, "(describe x)", "Returns a string that is a human-readable description of `x`. " "For recursive data structures, the string returned contains a " - "more or less unique pointer value from which the identity of `x` " - "could be determined.") { + "pointer value from which the identity of `x` " + "can be determined.") { JanetBuffer *b = janet_buffer(0); for (int32_t i = 0; i < argc; ++i) janet_description_b(b, argv[i]); diff --git a/src/core/inttypes.c b/src/core/inttypes.c index 1489d8ea..5de40112 100644 --- a/src/core/inttypes.c +++ b/src/core/inttypes.c @@ -212,10 +212,10 @@ JANET_CORE_FN(cfun_to_number, "Convert an int/u64 or int/s64 to a number. Fails if the number is out of range for an int32.") { janet_fixarity(argc, 1); if (janet_type(argv[0]) == JANET_ABSTRACT) { - void* abst = janet_unwrap_abstract(argv[0]); + void *abst = janet_unwrap_abstract(argv[0]); if (janet_abstract_type(abst) == &janet_s64_type) { - int64_t value = *((int64_t*)abst); + int64_t value = *((int64_t *)abst); if (value > JANET_INTMAX_INT64) { janet_panicf("cannot convert %q to a number, must be in the range [%q, %q]", argv[0], janet_wrap_number(JANET_INTMIN_DOUBLE), janet_wrap_number(JANET_INTMAX_DOUBLE)); } @@ -226,7 +226,7 @@ JANET_CORE_FN(cfun_to_number, } if (janet_abstract_type(abst) == &janet_u64_type) { - uint64_t value = *((uint64_t*)abst); + uint64_t value = *((uint64_t *)abst); if (value > JANET_INTMAX_INT64) { janet_panicf("cannot convert %q to a number, must be in the range [%q, %q]", argv[0], janet_wrap_number(JANET_INTMIN_DOUBLE), janet_wrap_number(JANET_INTMAX_DOUBLE)); }