aboutsummaryrefslogtreecommitdiff
path: root/shellsort.c
diff options
context:
space:
mode:
Diffstat (limited to 'shellsort.c')
-rw-r--r--shellsort.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shellsort.c b/shellsort.c
index b19f547..29e6bf8 100644
--- a/shellsort.c
+++ b/shellsort.c
@@ -37,8 +37,7 @@ test(T a[], size_t n)
37{ 37{
38 for ( size_t i = 1; i < n; ++i ) { 38 for ( size_t i = 1; i < n; ++i ) {
39 if ( a[i - 1] > a[i] ) { 39 if ( a[i - 1] > a[i] ) {
40 fprintf(stderr, "Error\n"); 40 ERROR("sortierung passt nicht");
41 exit(EXIT_FAILURE);
42 } 41 }
43 } 42 }
44} 43}