diff --git a/src/operators.c b/src/operators.c
index f1c51cbceb6132a5e9e5a906ff2aa2d37ea29527..5f10b36132776d69675df613f97fc6a88c824091 100644
--- a/src/operators.c
+++ b/src/operators.c
@@ -403,12 +403,7 @@ PMOD_EXPORT void o_cast_to_string(void)
 
       s = begin_wide_shared_string(a->size, shift);
       switch(shift) {
-      default:
-#ifdef PIKE_DEBUG
-	Pike_fatal("cast: Bad shift: %d.\n", shift);
-	break;
       case 0:
-#endif
 	for(i = a->size; i--; ) {
 	  s->str[i] = (p_wchar0) a->item[i].u.integer;
 	}