diff options
Diffstat (limited to 'src/slices.c')
-rwxr-xr-x | src/slices.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slices.c b/src/slices.c index 9f40b9e..21fdd3b 100755 --- a/src/slices.c +++ b/src/slices.c @@ -36,7 +36,7 @@ int sliceSplit(slices_t *slices, slice_t *initialSlice, address_t splitAt, slice and then between he first and second if needed. */ - if ( splitAt < initialSlice->begin || splitAt > initialSlice->end ) return 2; + if ( splitAt < initialSlice->begin || splitAt > initialSlice->end ) return -2; // Test before act because we'll change values of the initialSlice because // it would become the firstSlice or even the second one if the first is zero-lenght |