Fix warning on architectures with longer integers.
[bertos.git] / bertos / mware / sprintf_test.c
index 15e1e7b3e9cfbd1faa8bfd2ae65ee28b10ba77ac..eba0da66e58d2ce572e499ab9d6484f602d60c92 100644 (file)
@@ -30,6 +30,8 @@
  *
  * -->
  *
+ * notest: avr
+ * notest: arm
  * \brief sprintf() implementation based on _formatted_write()
  *
  * \version $Id$
@@ -64,7 +66,7 @@ int sprintf_testRun(void)
        if (strcmp(buf, test_string) != 0)
                return 1;
 
-       snprintf(buf, sizeof buf, "%S", (wchar_t *)test_string_pgm);
+       snprintf(buf, sizeof buf, "%S", (const wchar_t *)test_string_pgm);
        if (strcmp(buf, test_string_pgm) != 0)
                return 2;