Skip to content

Commit

Permalink
win32: Fix 1 error and 2 warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Benn Snyder <benn.snyder@gmail.com>
  • Loading branch information
piedar committed Apr 16, 2014
1 parent dafe01e commit 3f21441
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions fakenect/platform.h
Expand Up @@ -26,6 +26,7 @@

#include <math.h>
#ifdef _WIN32
#include <direct.h>
#include <windows.h>
#define snprintf _snprintf
#define popen _popen
Expand Down
2 changes: 1 addition & 1 deletion src/cameras.c
Expand Up @@ -833,7 +833,7 @@ static int freenect_fetch_zero_plane_info(freenect_device *dev)
FN_SPEW("reference_pixel_size: %f\n", dev->registration.zero_plane_info.reference_pixel_size);

// FIXME: OpenNI seems to use a hardcoded value of 2.4 instead of 2.3 as reported by Kinect
dev->registration.zero_plane_info.dcmos_rcmos_dist = 2.4;
dev->registration.zero_plane_info.dcmos_rcmos_dist = 2.4f;

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/freenect_internal.h
Expand Up @@ -159,7 +159,7 @@ typedef struct {
int frame_size;
int last_pkt_size;
int valid_pkts;
uint lost_pkts;
unsigned int lost_pkts;
int valid_frames;
int variable_length;
uint32_t last_timestamp;
Expand Down

0 comments on commit 3f21441

Please sign in to comment.