Ver Fonte

gcc warning for sign conversion

See patch #10143
Florian La Roche há 4 anos atrás
pai
commit
7c3aab2ea2
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      test/unit/lwip_unittests.c

+ 1 - 1
test/unit/lwip_unittests.c

@@ -26,7 +26,7 @@
 unsigned int
 unsigned int
 lwip_port_rand(void)
 lwip_port_rand(void)
 {
 {
-  return rand();
+  return (unsigned int)rand();
 }
 }
 
 
 Suite* create_suite(const char* name, testfunc *tests, size_t num_tests, SFun setup, SFun teardown)
 Suite* create_suite(const char* name, testfunc *tests, size_t num_tests, SFun setup, SFun teardown)