mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Give the type 'void' to functions have no argument.
According to the C standard, it is desirable to give the type 'void' to functions have no argument.
This commit is contained in:
@@ -30,12 +30,12 @@ static void mt_g_srand(unsigned long seed)
|
||||
init_genrand(seed);
|
||||
}
|
||||
|
||||
static unsigned long mt_g_rand()
|
||||
static unsigned long mt_g_rand(void)
|
||||
{
|
||||
return genrand_int32();
|
||||
}
|
||||
|
||||
static double mt_g_rand_real()
|
||||
static double mt_g_rand_real(void)
|
||||
{
|
||||
return genrand_real1();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user