Guest User

ros-indigo-stage.patch

a guest
May 22nd, 2016
239
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- ./stage/libstage/world.cc   2016-05-22 17:32:56.876610943 +0300
  2. +++ ./stage/libstage/world.cc   2016-05-22 17:31:35.593280198 +0300
  3. @@ -803,8 +803,8 @@
  4.    // Graphics Gems IV  
  5.    const int32_t sx(sgn(dx));  
  6.    const int32_t sy(sgn(dy));  
  7. -  const int32_t ax(abs(dx));
  8. -  const int32_t ay(abs(dy));  
  9. +  const int32_t ax(abs((int32_t)dx));
  10. +  const int32_t ay(abs((int32_t)dy));  
  11.    const int32_t bx(2*ax); 
  12.    const int32_t by(2*ay); 
  13.    int32_t exy(ay-ax); // difference between x and y distances
RAW Paste Data