Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: third_party/lcms2-2.6/src/cmsio0.c

Issue 1672163002: lcms2: Fix a type confusion. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/lcms2-2.6/README.pdfium ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //------------------------------------------------------------------------------ --- 1 //------------------------------------------------------------------------------ ---
2 // 2 //
3 // Little Color Management System 3 // Little Color Management System
4 // Copyright (c) 1998-2012 Marti Maria Saguer 4 // Copyright (c) 1998-2012 Marti Maria Saguer
5 // 5 //
6 // Permission is hereby granted, free of charge, to any person obtaining 6 // Permission is hereby granted, free of charge, to any person obtaining
7 // a copy of this software and associated documentation files (the "Software"), 7 // a copy of this software and associated documentation files (the "Software"),
8 // to deal in the Software without restriction, including without limitation 8 // to deal in the Software without restriction, including without limitation
9 // the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 // and/or sell copies of the Software, and to permit persons to whom the Softwar e 10 // and/or sell copies of the Software, and to permit persons to whom the Softwar e
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 continue; 712 continue;
713 713
714 Icc -> TagNames[Icc ->TagCount] = Tag.sig; 714 Icc -> TagNames[Icc ->TagCount] = Tag.sig;
715 Icc -> TagOffsets[Icc ->TagCount] = Tag.offset; 715 Icc -> TagOffsets[Icc ->TagCount] = Tag.offset;
716 Icc -> TagSizes[Icc ->TagCount] = Tag.size; 716 Icc -> TagSizes[Icc ->TagCount] = Tag.size;
717 717
718 // Search for links 718 // Search for links
719 for (j=0; j < Icc ->TagCount; j++) { 719 for (j=0; j < Icc ->TagCount; j++) {
720 720
721 if ((Icc ->TagOffsets[j] == Tag.offset) && 721 if ((Icc ->TagOffsets[j] == Tag.offset) &&
722 (Icc ->TagSizes[j] == Tag.size)) { 722 (Icc ->TagSizes[j] == Tag.size) &&
723 (Icc ->TagNames[j] == Tag.sig)) {
723 724
724 Icc ->TagLinked[Icc ->TagCount] = Icc ->TagNames[j]; 725 Icc ->TagLinked[Icc ->TagCount] = Icc ->TagNames[j];
725 } 726 }
726 727
727 } 728 }
728 729
729 Icc ->TagCount++; 730 Icc ->TagCount++;
730 } 731 }
731 732
732 return TRUE; 733 return TRUE;
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1874 { 1875 {
1875 _cmsICCPROFILE* Icc = (_cmsICCPROFILE*) hProfile; 1876 _cmsICCPROFILE* Icc = (_cmsICCPROFILE*) hProfile;
1876 int i; 1877 int i;
1877 1878
1878 // Search for given tag in ICC profile directory 1879 // Search for given tag in ICC profile directory
1879 i = _cmsSearchTag(Icc, sig, FALSE); 1880 i = _cmsSearchTag(Icc, sig, FALSE);
1880 if (i < 0) return (cmsTagSignature) 0; // Not found, return 0 1881 if (i < 0) return (cmsTagSignature) 0; // Not found, return 0
1881 1882
1882 return Icc -> TagLinked[i]; 1883 return Icc -> TagLinked[i];
1883 } 1884 }
OLDNEW
« no previous file with comments | « third_party/lcms2-2.6/README.pdfium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698