From 09d398c748c2707918c9f531b91d161b08cb1163 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Thu, 30 Dec 2021 14:28:19 +0100 Subject: Code format --- std/int.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'std/int.c') diff --git a/std/int.c b/std/int.c index a8d2c6d..48c808b 100644 --- a/std/int.c +++ b/std/int.c @@ -56,7 +56,7 @@ static int reduce(const char *fnname, UwUVMArgs *args, ReduceOP op, int result) for (size_t i = 0; i < args->num; i++) { UwUVMValue value = uwuvm_get_arg(args, i); - + if (value.type != VT_INT) error("error: %s only accepts integers as arguments (invalid argument: $%lu)\n", fnname, i); @@ -90,7 +90,7 @@ UwUVMValue uwu_sub(UwUVMArgs *args) UwUVMValue uwu_mul(UwUVMArgs *args) { - return uwuint_create(reduce(":int:mul", args, ROP_MUL, 1)); + return uwuint_create(reduce(":int:mul", args, ROP_MUL, 1)); } UwUVMValue uwu_div(UwUVMArgs *args) @@ -114,7 +114,7 @@ UwUVMValue uwu_greater(UwUVMArgs *args) } UwUVMValue uwu_equal(UwUVMArgs *args) -{ +{ if (args->num < 2) error("error: :int:equal requires at least 2 arguments\n"); -- cgit v1.2.3