garrynewman / GWEN

Abandoned: GWEN - GUI Without Extravagant Nonsense.
MIT License
428 stars 102 forks source link

MSVC2008 (Windows) Compile fix #41

Closed DeeKayHT closed 11 years ago

DeeKayHT commented 11 years ago

Bug

Visual Studio 2008 errors when compiling about Extension.size() in Gwen::Min() returning an ambiguous value (int vs. unsigned).

Fix

Replaced the hardcoded values 512 on the offending lines with sizeof(FilterBuffer) since Extension.size()and sizeof() both return a size_t.

Misc Changes

Changed some hard-coded values used multiple times into a defined value. This should makes the code more readable and less prone to errors if the values need to change.