diff --git a/src/obj_str.c b/src/obj_str.c index 99b1c49..5460738 100644 --- a/src/obj_str.c +++ b/src/obj_str.c @@ -590,8 +590,10 @@ KRK_Method(str,__mod__) { if (IS_INTEGER(arg)) { krk_push(INTEGER_VAL(AS_INTEGER(arg))); +#ifndef KRK_NO_FLOAT } else if (IS_FLOATING(arg)) { krk_push(INTEGER_VAL(AS_FLOATING(arg))); +#endif } else { krk_runtimeError(vm.exceptions->typeError, "%%i format: a number is required, not '%T'", arg); goto _exception;