Skip to content
Browse files

Fix C++ type error with size_t not equal to ___SIZE_T

  • Loading branch information...
1 parent 86338f8 commit 0089927f827370a9d775a7553509282bde3297a7 @feeley committed May 5, 2013
Showing with 6 additions and 6 deletions.
  1. +2 −2 include/stamp.h
  2. +4 −4 lib/os.c
View
4 include/stamp.h
@@ -2,5 +2,5 @@
* Time stamp of last source code repository commit.
*/
-#define ___STAMP_YMD 20130504
-#define ___STAMP_HMS 134655
+#define ___STAMP_YMD 20130506
+#define ___STAMP_HMS 25256
View
8 lib/os.c
@@ -132,8 +132,8 @@ int ___processor_count ___PVOID
#ifdef OP_NB_CPU
- ___SIZE_T n = 0;
- ___SIZE_T sizeof_n = sizeof(n);
+ size_t n = 0;
+ size_t sizeof_n = sizeof(n);
int mib[2];
mib[0] = CTL_HW;
@@ -310,8 +310,8 @@ int level;)
if ((level == 0 || level == sysctl_info[i].level) &&
(sysctl_info[i].kind & (1<<instruction_cache))) {
- ___SIZE_T size = 0;
- ___SIZE_T sizeof_size = sizeof(size);
+ size_t size = 0;
+ size_t sizeof_size = sizeof(size);
int mib[2];
mib[0] = CTL_HW;

0 comments on commit 0089927

Please sign in to comment.
Something went wrong with that request. Please try again.