Permalink
Browse files

fix PR#6431 (patch by Benoît Vaugon)

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14954 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information...
gasche committed Jun 4, 2014
1 parent 3fa3477 commit d6bfdc7002bd897067d80717ecd211cfe3245494
Showing with 1 addition and 1 deletion.
  1. +1 −1 stdlib/camlinternalFormat.ml
@@ -1187,7 +1187,7 @@ let fix_int_precision prec str =
| '0' when len > 1 && (str.[1] = 'x' || str.[1] = 'X') ->
Bytes.set res 1 str.[1];
String.blit str 2 res (prec - len + 2) (len - 2);
- | '0' .. '9' ->
+ | '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ->
String.blit str 0 res (prec - len) len;
| _ ->
assert false

0 comments on commit d6bfdc7

Please sign in to comment.