diff --git a/src/divsion.c b/src/divsion.c index e4e06fb..5f1dcbd 100644 --- a/src/divsion.c +++ b/src/divsion.c @@ -19,5 +19,8 @@ double divisionDouble(double a, double b) { } int divisionByTwo(int a, int b) { + if (b == 0){ + return a; +} return a >> b; }