paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [paparazzi/paparazzi] c95b2a: [ocaml] fix uint32 par


From: GitHub
Subject: [paparazzi-commits] [paparazzi/paparazzi] c95b2a: [ocaml] fix uint32 parsing
Date: Tue, 26 Aug 2014 07:13:58 -0700

  Branch: refs/heads/master
  Home:   https://github.com/paparazzi/paparazzi
  Commit: c95b2a23a8ab28085a6c30297338a86867b04154
      
https://github.com/paparazzi/paparazzi/commit/c95b2a23a8ab28085a6c30297338a86867b04154
  Author: Felix Ruess <address@hidden>
  Date:   2014-08-25 (Mon, 25 Aug 2014)

  Changed paths:
    M sw/ground_segment/tmtc/fw_server.ml
    M sw/ground_segment/tmtc/rotorcraft_server.ml
    M sw/lib/ocaml/convert.c
    M sw/lib/ocaml/pprz.ml
    M sw/lib/ocaml/pprz.mli

  Log Message:
  -----------
  [ocaml] fix uint32 parsing

Don't use int32 to represent uint32 so we don't get overflows...
When extracting an uint32 from a bytestream, copy it to a C uint32 first,
then convert that to an int64 for usage in OCaml (since it doesn't have 
unsigned ints)

This addresses #793 at least for unsigned 32bit values.
Only tested on 64bit system so far...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]