From 28fcc5988316ac0eddb57d87919569df571f60a3 Mon Sep 17 00:00:00 2001 From: David Reid Date: Wed, 17 Apr 2019 17:24:54 +1000 Subject: [PATCH] Replace a useless struct with a union. --- miniaudio.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index 91e21911..22a5134d 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -1806,13 +1806,10 @@ typedef struct ma_uint32 maxSampleRate; } ma_device_info; -typedef struct +typedef union { - union - { - ma_int64 counter; - double counterD; - }; + ma_int64 counter; + double counterD; } ma_timer; typedef struct