ソースを参照

device: fix warning

Daniele Bartolini 6 年 前
コミット
27add9a85a
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/device/device.cpp

+ 1 - 1
src/device/device.cpp

@@ -441,7 +441,7 @@ void Device::run()
 	while (!process_events(_boot_config.vsync) && !_quit)
 	{
 		const s64 time = time::now();
-		const f32 dt   = time::seconds(time - time_last);
+		const f32 dt   = f32(time::seconds(time - time_last));
 		time_last = time;
 
 		profiler_globals::clear();