diff options
| author | Thomas Schmucker <ts@its1.de> | 2022-01-04 11:08:42 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2022-01-04 11:08:42 +0100 |
| commit | 2a32335f1ff91e96fd6a09819317f77d6b8bf285 (patch) | |
| tree | fc8b1623065a936fb5f3594b58cb843644204c69 /shellsort.c | |
| parent | 20e4846be684195401078aad209aa999c4171df4 (diff) | |
| parent | 5b266bab1c35617a34989bd801e16854ad789f86 (diff) | |
| download | data-structures-2a32335f1ff91e96fd6a09819317f77d6b8bf285.tar.gz data-structures-2a32335f1ff91e96fd6a09819317f77d6b8bf285.tar.bz2 data-structures-2a32335f1ff91e96fd6a09819317f77d6b8bf285.zip | |
Merge branch 'feat/rework-util.h'
Diffstat (limited to 'shellsort.c')
| -rw-r--r-- | shellsort.c | 3 |
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 | } |
