瀏覽代碼

Ehm, unsigned double.. sure..

Bart van Strien 14 年之前
父節點
當前提交
515596d389
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/modules/sound/SoundData.cpp

+ 2 - 2
src/modules/sound/SoundData.cpp

@@ -64,7 +64,7 @@ namespace sound
 	SoundData::SoundData(int samples, int sampleRate, int bits, int channels)
 		: data(0), size(samples*(bits/8)*channels), sampleRate(sampleRate), bits(bits), channels(channels)
 	{
-		unsigned double realsize = samples;
+		double realsize = samples;
 		realsize *= (bits/8)*channels;
 		if (realsize > INT_MAX)
 			throw love::Exception("Data is too big!");
@@ -76,7 +76,7 @@ namespace sound
 	SoundData::SoundData(void * d, int samples, int sampleRate, int bits, int channels)
 		: data(0), size(samples*(bits/8)*channels), sampleRate(sampleRate), bits(bits), channels(channels)
 	{
-		unsigned double realsize = samples;
+		double realsize = samples;
 		realsize *= (bits/8)*channels;
 		if (realsize > INT_MAX)
 			throw love::Exception("Data is too big!");