From 3b383cebe46143a7d2d4b495c478413e47cf2b9c Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Tue, 25 Apr 2023 11:20:06 +0200 Subject: [PATCH] i think circ shift is good now? --- src/circular_shift.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/circular_shift.c b/src/circular_shift.c index 40fd9e7..5141197 100644 --- a/src/circular_shift.c +++ b/src/circular_shift.c @@ -11,6 +11,7 @@ * when the shift count is 0 or >= the width of unsigned int. */ +#include #include // for uint32_t, to get 32-bit-wide rotates, regardless of the size of int. #include // for CHAR_BIT @@ -27,6 +28,7 @@ uint32_t rotr32 (uint32_t value, unsigned int count) { } uint32_t main(int* argc, char** argv) { + // compiler warning for this comparison, but this works as intended. if (argc < 3) { printf("give two integers as argument!\n"); return 1;