ICU-20767 Potential negative index access in one of the sample codes
diff --git a/icu4c/source/samples/ufortune/ufortune.c b/icu4c/source/samples/ufortune/ufortune.c
index c1c203a..7bf5bab 100644
--- a/icu4c/source/samples/ufortune/ufortune.c
+++ b/icu4c/source/samples/ufortune/ufortune.c
@@ -193,7 +193,7 @@
         exit(-1);
     }
 
-    i = (int)time(NULL) % numFortunes;    /*  Use time to pick a somewhat-random fortune.  */
+    i = time(NULL) % numFortunes;    /*  Use time to pick a somewhat-random fortune.  */
     resString = ures_getStringByIndex(fortunes_r, i, &len, &err);
     if (U_FAILURE(err)) {
         fprintf(stderr, "%s: ures_getStringByIndex(%d) failed, %s\n", programName, i, u_errorName(err));