Skip to content

Commit

Permalink
fix azp on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed Dec 11, 2020
1 parent 82ddc5e commit 142685b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Algorithms/rng.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ class Xoroshiro128Random
#ifdef __WXOSX__
return ((unsigned long long)nextLong() >> 11) * 0x1.0p-53;
#else
char tempStr[] = "0x1.0p-53";
double nd = std::strtod(tempStr, NULL);
double nd = pow(2.0, -53);
return ((unsigned long long)nextLong() >> 11) * nd;
#endif
}
Expand Down
1 change: 1 addition & 0 deletions BuildTools/windows/GeoDa.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@
<ClInclude Include="..\..\Algorithms\pam.h" />
<ClInclude Include="..\..\Algorithms\pca.h" />
<ClInclude Include="..\..\Algorithms\redcap.h" />
<ClInclude Include="..\..\Algorithms\rng.h" />
<ClInclude Include="..\..\Algorithms\S.h" />
<ClInclude Include="..\..\Algorithms\skater.h" />
<ClInclude Include="..\..\Algorithms\smacof.h" />
Expand Down
3 changes: 3 additions & 0 deletions BuildTools/windows/GeoDa.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,9 @@
<ClInclude Include="..\..\Algorithms\azp.h">
<Filter>Algorithms</Filter>
</ClInclude>
<ClInclude Include="..\..\Algorithms\rng.h">
<Filter>Algorithms</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\rc\GdaAppResources.cpp">
Expand Down
2 changes: 1 addition & 1 deletion DialogTools/AZPDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ void AZPDlg::OnOK(wxCommandEvent& event )
// initial = value_initial;
//}

// Get initial seed e.g LISA clusters
// Get initial seed e.g LISA clusters, not used
std::vector<int> init_regions;
bool use_init_regions = chk_lisa->GetValue();
if (use_init_regions) {
Expand Down

0 comments on commit 142685b

Please sign in to comment.